b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/tokenize.pyc
Size13.69 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:25
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc&@sôdZdZdZddkZddkZddkTddkZgZee�D]"Zeddjo eeqQqQ[dd d
d d gZ [[e
Z de e <e
d
Z
d e e
<e
d7Z
d�Zd�Zd�ZdZdZeede�ee�ZdZdZdZdZdZeeeee�ZdZedd�ee�ZdeZeee�Zeded�Zeeee�Zd Z d!Z!d"Z"d#Z#ed$d%�Z$ed&d'�Z%ed(d)d*d+d,d-d.d/�Z&d0Z'ed1d2�Z(ee&e'e(�Z)eee)e%e�Z*ee*Z+ed3ed4d�d5ed6d��Z,edee$�Z-eee-ee)e,e�Z.e/ei0e+e.e"e#f�\Z1Z2Z3Z4h&ei0e �d46ei0e!�d66e3d76e4d86e3d96e4d:6e3d;6e4d<6e3d=6e4d>6e3d?6e4d@6e3dA6e4dB6e3dC6e4dD6e3dE6e4dF6e3dG6e4dH6e3dI6e4dJ6e3dK6e4dL6e3dM6e4dN6e3dO6e4dP6e3dQ6e4dR6e3dS6e4dT6ddU6ddV6ddW6ddX6ddY6ddZ6Z6hZ7xd�D]Z8e8e7e8<qåWhZ9xd�D]Z8e8e9e8<qWdwZ:dxe;fdy��YZ<dze;fd{��YZ=d|�Z>e>d}�Z?d~�Z@dd�d���YZAd��ZBd��ZCeDd�joTddkEZEeFeEiG�d
joe?eHeEiGd
�iI�qðe?eEiJiI�ndS(�sÀTokenization help for Python programs.

generate_tokens(readline) is a generator that breaks a stream of
text into Python tokens. It accepts a readline-like method which is called
repeatedly to get the next line of input (or "" for EOF). It generates
5-tuples with these members:

the token type (see token.py)
the token (a string)
the starting (row, column) indices of the token (a 2-tuple of ints)
the ending (row, column) indices of the token (a 2-tuple of ints)
the original line (string)

It is designed to match the working of the Python tokenizer exactly, except
that it produces COMMENT tokens for comments and gives type OP for all
operators

Older entry points
tokenize_loop(readline, tokeneater)
tokenize(readline, tokeneater=printtoken)
are the same, except instead of generating tokens, tokeneater is a callback
function to which the 5 fields described above are passed as 5 arguments,
each time a new token is found.sKa-Ping Yee <[email protected]>sSGvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, Skip Montanaro, Raymond HettingeriÿÿÿÿN(t*it_tCOMMENTttokenizetgenerate_tokenstNLt
untokenizeiicGsddi|�dS(Nt(t|t)(tjoin(tchoices((s /usr/lib64/python2.6/tokenize.pytgroup,scGst|�dS(NR(R (R ((s /usr/lib64/python2.6/tokenize.pytany-scGst|�dS(Nt?(R (R ((s /usr/lib64/python2.6/tokenize.pytmaybe.ss[ \f\t]*s #[^\r\n]*s\\\r?\ns [a-zA-Z_]\w*s0[xX][\da-fA-F]+[lL]?s(0[oO][0-7]+)|(0[0-7]*)[lL]?s0[bB][01]+[lL]?s
[1-9]\d*[lL]?s [eE][-+]?\d+s\d+\.\d*s\.\d+s\d+s\d+[jJ]s[jJ]s[^'\\]*(?:\\.[^'\\]*)*'s[^"\\]*(?:\\.[^"\\]*)*"s%[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''s%[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""s
[uU]?[rR]?'''s
[uU]?[rR]?"""s&[uU]?[rR]?'[^\n'\\]*(?:\\.[^\n'\\]*)*'s&[uU]?[rR]?"[^\n"\\]*(?:\\.[^\n"\\]*)*"s\*\*=?s>>=?s<<=?s<>s!=s//=?s[+\-*/%&|^=<>]=?t~s[][(){}]s\r?\ns[:;.,`@]s%[uU]?[rR]?'[^\n'\\]*(?:\\.[^\n'\\]*)*t's%[uU]?[rR]?"[^\n"\\]*(?:\\.[^\n"\\]*)*t"s'''s"""sr'''sr"""su'''su"""sur'''sur"""sR'''sR"""sU'''sU"""suR'''suR"""sUr'''sUr"""sUR'''sUR"""sb'''sb"""sbr'''sbr"""sB'''sB"""sbR'''sbR"""sBr'''sBr"""sBR'''sBR"""trtRtutUtbtBsr'sr"sR'sR"su'su"sU'sU"sur'sur"sUr'sUr"suR'suR"sUR'sUR"sb'sb"sB'sB"sbr'sbr"sBr'sBr"sbR'sbR"sBR'sBR"it
TokenErrorcBseZRS((t__name__t
__module__(((s /usr/lib64/python2.6/tokenize.pyR�stStopTokenizingcBseZRS((RR(((s /usr/lib64/python2.6/tokenize.pyR�sc CsA|\}}|\}}d||||t|t|�fGHdS(Ns%d,%d-%d,%d: %s %s(ttok_nametrepr( ttypettokent srow_scolt erow_ecoltlinetsrowtscolterowtecol((s /usr/lib64/python2.6/tokenize.pyt
printtoken�s  cCs+yt||�Wntj
onXdS(s:
The tokenize() function accepts two parameters: one representing the
input stream, and one providing an output mechanism for tokenize().

The first parameter, readline, must be a callable object which provides
the same interface as the readline() method of built-in file objects.
Each call to the function should return one line of input as a string.

The second parameter, tokeneater, must also be a callable object. It is
called once for each token, with five arguments, corresponding to the
tuples generated by generate_tokens().
N(t
tokenize_loopR(treadlinet
tokeneater((s /usr/lib64/python2.6/tokenize.pyR�s
cCs%xt|�D]}||�q
WdS(N(R(R*R+t
token_info((s /usr/lib64/python2.6/tokenize.pyR)®s
t UntokenizercBs,eZd�Zd�Zd�Zd�ZRS(cCsg|_d|_d|_dS(Nii(ttokenstprev_rowtprev_col(tself((s /usr/lib64/python2.6/tokenize.pyt__init__´s  cCsS|\}}||ijpt�||i}|o|iid|�ndS(Nt (R/tAssertionErrorR0R.tappend(R1tstarttrowtcolt
col_offset((s /usr/lib64/python2.6/tokenize.pytadd_whitespace¹s
 
cCs¼x©|D]¡}t|�djo|i||�Pn|\}}}}}|i|�|ii|�|\|_|_|ttfjo|id7_d|_qqWdi |i�S(Niiit(
tlentcompatR:R.R5R/R0tNEWLINERR
(R1titerablettttok_typeR R6tendR#((s /usr/lib64/python2.6/tokenize.pyRÀs
c
Cslt}g}|ii}|\}}|ttfjo|d7}n|ttfjo
t}nt}xý|D]õ} | d \}}|ttfjo|d7}n|tjo|od|}nt}nt}|t jo|i|�qonb|t
jo|i �qonD|ttfjo
t}n'|o|o||d�t}n||�qoWdS(NR3iiÿÿÿÿ( tFalseR.R5tNAMEtNUMBERR>RtTruetSTRINGtINDENTtDEDENTtpop(
R1R R?t startlinetindentst toks_appendttoknumttokvalt
prevstringttok((s /usr/lib64/python2.6/tokenize.pyR=Îs>  








(RRR2R:RR=(((s /usr/lib64/python2.6/tokenize.pyR-²s   cCst�}|i|�S(s­Transform tokens back into Python source code.

Each element returned by the iterable must be a token sequence
with at least two elements, a token number and token value. If
only two tokens are passed, the resulting output is poor.

Round-trip invariant for full input:
Untokenized source will match input source exactly

Round-trip invariant for limited intput:
# Output text will tokenize the back to the input
t1 = [tok[:2] for tok in generate_tokens(f.readline)]
newcode = untokenize(t1)
readline = iter(newcode.splitlines(1)).next
t2 = [tok[:2] for tok in generate_tokens(readline)]
assert t1 == t2
(R-R(R?tut((s /usr/lib64/python2.6/tokenize.pyRós c cs}d}}}tidd}}d\}}d}dg} xäy
|�}
Wntj
o
d}
nX|d}dt|
�} } |oú|
ptd|
f�n|i|
�}|oO|id�} }t||
| |
||f||
fVd\}}d}q|oY|
ddjoH|
d d
jo7t ||
|
|t|
�f|fVd}d}q@q||
}||
}q@n||djoH| o@|
pPnd}x~| | jop|
| d jo|d}nD|
| d jo|t
dt
}n|
| d
jo
d}nP| d} q±W| | joPn|
| djoÑ|
| djo{|
| i d�}| t|�}t ||| f|| t|�f|
fVt
|
|||f|t|
�f|
fVq@t
t f|
| dj|
| || f|t|
�f|
fVq@n|| djo5| i|�t|
| |df|| f|
fVnx�|| djoZ|| jotdd|| |
f��n| d } td|| f|| f|
fVqlWn'|
ptd|dff�nd}x| | joti|
| �}|o¿|id�\}}||f||f|}}} |
||!|
|}}||jp|djo%|djot||||
fVq|djo,|djot
nt||||
fVq|djo0|id� pt�t ||||
fVq|tjo~t|}|i|
| �}|o:|id�} |
|| !}t|||| f|
fVqæ||f}
|
|}|
}Pq|tjp"|d tjp|d tjoy|ddjoP||f}
t|pt|dp t|d}|
|d}}|
}Pqæt||||
fVq||jot||||
fVq|djo
d}q|djo|d}n|djo|d}nt||||
fVqt |
| || f|| df|
fV| d} qWq@x2| dD]&}td|df|dfdfVq/Wtd|df|dfdfVdS(sS
The generate_tokens() generator requires one argment, readline, which
must be a callable object which provides the same interface as the
readline() method of built-in file objects. Each call to the function
should return one line of input as a string. Alternately, readline
can be a callable function terminating with StopIteration:
readline = open(myfile).next # Example of alternate readline

The generator produces 5-tuples with these members: the token type; the
token string; a 2-tuple (srow, scol) of ints specifying the row and
column where the token begins in the source; a 2-tuple (erow, ecol) of
ints specifying the row and column where the token ends in the source;
and the line on which the token was found. The line passed is the
logical line; continuation lines are included.
iRt
0123456789R;isEOF in multi-line stringiþÿÿÿs\
iýÿÿÿs\
R3s s s#
t#s
iÿÿÿÿs3unindent does not match any outer indentation levels
<tokenize>sEOF in multi-line statementt.s
iis\s([{s)]}N(R;i(R;i(tstringt
ascii_letterstNonet
StopIterationR<RtmatchRBRGt
ERRORTOKENttabsizetrstripRRR5RHtIndentationErrorRIt
pseudoprogtspanRER>tendswithR4t
triple_quotedtendprogst
single_quotedRDtOPt ENDMARKER(R*tlnumtparenlevt continuedt namecharstnumcharstcontstrtneedconttcontlineRLR#tpostmaxtstrstarttendprogtendmatchRBtcolumnt
comment_tokentnl_post pseudomatchR6tsposteposR tinitialtindent((s /usr/lib64/python2.6/tokenize.pyRsü  
 
 
)





$
$ 
(

)
 





 

 





 $t__main__(s'''s"""sr'''sr"""sR'''sR"""su'''su"""sU'''sU"""sur'''sur"""sUr'''sUr"""suR'''suR"""sUR'''sUR"""sb'''sb"""sB'''sB"""sbr'''sbr"""sBr'''sBr"""sbR'''sbR"""sBR'''sBR"""(RRsr'sr"sR'sR"su'su"sU'sU"sur'sur"sUr'sUr"suR'suR"sUR'sUR"sb'sb"sB'sB"sbr'sbr"sBr'sBr"sbR'sbR"sBR'sBR"((Kt__doc__t
__author__t __credits__RVtreR t_[1]tdirtxt__all__tN_TOKENSRRRR R
Rt
WhitespacetCommenttIgnoretNamet Hexnumbert Octnumbert Binnumbert Decnumbert IntnumbertExponentt
PointfloattExpfloatt Floatnumbert
ImagnumbertNumbertSingletDoubletSingle3tDouble3tTripletStringtOperatortBrackettSpecialtFunnyt
PlainTokentTokentContStrt PseudoExtrast PseudoTokentmaptcompilet tokenprogR_t single3progt double3progRXRcRbR@RdR\t ExceptionRRR(RR)R-RRRtsysR<targvtopenR*tstdin(((s /usr/lib64/python2.6/tokenize.pyt<module>sÜ
 ?



   
  

'#   A  �