AlkantarClanX12

Your IP : 18.188.132.71


Current Path : /proc/thread-self/root/opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python33/lib64/python3.3/__pycache__/tokenize.cpython-33.pyo

�
��f,ac@s�dZdZdZddlZddlmZmZddlZddlm	Z	ddl
mZddlZddl
Z
ddlTejd	ej�Zejd
ej�ZddlZejddd
ddddgZ[eZdee<edZdee<edZdee<ed7Zi+ed6ed6ed6ed6ed6ed6ed6e d6e!d6e"d6e#d6e$d 6e%d!6e&d"6e'd#6e(d$6e)d%6e*d&6e+d'6e,d(6e-d)6e.d*6e/d+6e0d,6e1d-6e2d.6e3d/6e4d06e5d16e6d26e7d36e8d46e9d56e:d66e;d76e<d86e=d96e>d:6e?d;6e@d<6eAd=6eBd>6eCd?6ZDGd@d�dejEddA��ZFdBdC�ZGdDdE�ZHdFdG�ZIdHZJdIZKeJeHdJeJ�eIeK�ZLdKZMdLZNdMZOdNZPdOZQeGeNeOePeQ�ZRdPZSeGdQdR�eIeS�ZTdSeSZUeGeTeU�ZVeGdTeVdU�ZWeGeWeVeR�ZXdVZYdWZZdXZ[dYZ\dZZ]eGeYd[eYd\�Z^eGeYd]eYd^�Z_eGd_d`dad*dbdcddd-�Z`deZaeGdfdgdh�ZbeGe`eaeb�ZceGeXece_eM�ZdeLedZeeGeYdieGdjdJ�eYdkeGdldJ��ZfeGdmeKe^�ZgeJeGegeXecefeM�Zhdndo�Zii(eZdj6e[dl6e\d[6e]d\6e\dp6e]dq6e\dr6e]ds6e\dt6e]du6e\dv6e]dw6e\dx6e]dy6e\dz6e]d{6e\d|6e]d}6e\d~6e]d6e\d�6e]d�6e\d�6e]d�6e\d�6e]d�6e\d�6e]d�6e\d�6e]d�6e\dt6e]du6e\d�6e]d�6dd�6dd�6dd�6dd�6dd�6dd�6ZkiZlxd�D]Zmemelem<q�WiZnxd�D]Zmemenem<q�Wd�ZoGd�d��d�ep�ZqGd�d��d�ep�ZrGd�d��d��Zsd�d�Ztd�d��Zud�d
�Zvd�d��Zwd�d�Zxd�d��Zyd�d��Zzd�d��Z{e|d�kr�e{�ndS(�uoTokenization help for Python programs.

tokenize(readline) is a generator that breaks a stream of bytes into
Python tokens.  It decodes the bytes according to PEP-0263 for
determining source file encoding.

It accepts a readline-like method which is called repeatedly to get the
next line of input (or b"" 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.  Additionally, all token lists start with an ENCODING token
which tells you which encoding was used to decode the bytes stream.
uKa-Ping Yee <ping@lfw.org>upGvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, Skip Montanaro, Raymond Hettinger, Trent Nelson, Michael FoordiN(ulookupuBOM_UTF8(u
TextIOWrapper(uchain(u*u%^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)s^[ \t\f]*(?:[#\r\n]|$)uCOMMENTutokenizeudetect_encodinguNLu
untokenizeuENCODINGu	TokenInfoiiiu(u)u[u]u:u,u;u+u-u*u/u|u&u<u>u=u.u%u{u}u==u!=u<=u>=u~u^u<<u>>u**u+=u-=u*=u/=u%=u&=u|=u^=u<<=u>>=u**=u//u//=u@cBs2|EeZdZdd�Zedd��ZdS(u	TokenInfocCs.d|jt|jf}d|jd|�S(Nu%d (%s)u8TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r)utype(utypeutok_nameu_replace(uselfuannotated_type((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu__repr__bsuTokenInfo.__repr__cCs4|jtkr)|jtkr)t|jS|jSdS(N(utypeuOPustringuEXACT_TOKEN_TYPES(uself((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu
exact_typegsuTokenInfo.exact_typeN(u__name__u
__module__u__qualname__u__repr__upropertyu
exact_type(u
__locals__((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu	TokenInfoasutype string start end linecGsddj|�dS(Nu(u|u)(ujoin(uchoices((u-/opt/alt/python33/lib64/python3.3/tokenize.pyugroupnsugroupcGst|�dS(Nu*(ugroup(uchoices((u-/opt/alt/python33/lib64/python3.3/tokenize.pyuanyosuanycGst|�dS(Nu?(ugroup(uchoices((u-/opt/alt/python33/lib64/python3.3/tokenize.pyumaybepsumaybeu[ \f\t]*u	#[^\r\n]*u\\\r?\nu\w+u0[xX][0-9a-fA-F]+u
0[bB][01]+u0[oO][0-7]+u(?:0+|[1-9][0-9]*)u[eE][-+]?[0-9]+u[0-9]+\.[0-9]*u\.[0-9]+u[0-9]+u
[0-9]+[jJ]u[jJ]u(?:[bB][rR]?|[rR][bB]?|[uU])?u[^'\\]*(?:\\.[^'\\]*)*'u[^"\\]*(?:\\.[^"\\]*)*"u%[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''u%[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""u'''u"""u'[^\n'\\]*(?:\\.[^\n'\\]*)*'u"[^\n"\\]*(?:\\.[^\n"\\]*)*"u\*\*=?u>>=?u<<=?u//=?u->u[+\-*/%&|^=<>]=?u[][(){}]u\r?\nu\.\.\.u[:;.,@]u'[^\n'\\]*(?:\\.[^\n'\\]*)*u'u"[^\n"\\]*(?:\\.[^\n"\\]*)*u"u
\\\r?\n|\ZcCstj|tj�S(N(ureucompileuUNICODE(uexpr((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu_compile�su_compileur'''ur"""ub'''ub"""uR'''uR"""uB'''uB"""ubr'''ubr"""ubR'''ubR"""uBr'''uBr"""uBR'''uBR"""urb'''urb"""uRb'''uRb"""urB'''urB"""uRB'''uRB"""uu'''uu"""uU'''uU"""uruRubuBuuuUur'ur"uR'uR"ub'ub"uB'uB"ubr'ubr"uBr'uBr"ubR'ubR"uBR'uBR"urb'urb"urB'urB"uRb'uRb"uRB'uRB"uu'uu"uU'uU"icBs|EeZdZdS(u
TokenErrorN(u__name__u
__module__u__qualname__(u
__locals__((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu
TokenError�su
TokenErrorcBs|EeZdZdS(uStopTokenizingN(u__name__u
__module__u__qualname__(u
__locals__((u-/opt/alt/python33/lib64/python3.3/tokenize.pyuStopTokenizing�suStopTokenizingcBsD|EeZdZdd�Zdd�Zdd�Zdd�Zd	S(
uUntokenizercCs(g|_d|_d|_d|_dS(Nii(utokensuprev_rowuprev_coluNoneuencoding(uself((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu__init__�s			uUntokenizer.__init__cCs�|\}}||jks9||jkr`||jkr`tdj|||j|j���n||j}|r�|jjd|�d|_n||j}|r�|jjd|�ndS(Nu+start ({},{}) precedes previous end ({},{})u\
iu (uprev_rowuprev_colu
ValueErroruformatutokensuappend(uselfustarturowucolu
row_offsetu
col_offset((u-/opt/alt/python33/lib64/python3.3/tokenize.pyuadd_whitespace�s-	

uUntokenizer.add_whitespacec	Cs�t|�}x�|D]�}t|�dkr?|j||�Pn|\}}}}}|tkro||_qn|tkrPn|j|�|jj|�|\|_	|_
|ttfkr|j	d7_	d|_
qqWdj
|j�S(Niiiu(uiterulenucompatuENCODINGuencodingu	ENDMARKERuadd_whitespaceutokensuappenduprev_rowuprev_coluNEWLINEuNLujoin(	uselfuiterableuitututok_typeutokenustartuenduline((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu
untokenize�s$
	
uUntokenizer.untokenizec
CsPg}|jj}|dttfk}d}xt|g|�D]}|dd�\}}	|tkrx|	|_qAn|tt	fkr�|	d7}	n|t
kr�|r�d|	}	nd}nd}|tkr�|j|	�qAnZ|t
kr|j�qAn>|ttfkrd}n#|r>|r>||d�d}n||	�qAWdS(Niiu iFTi����(utokensuappenduNEWLINEuNLuFalseuchainuENCODINGuencodinguNAMEuNUMBERuSTRINGuTrueuINDENTuDEDENTupop(
uselfutokenuiterableuindentsutoks_appendu	startlineu
prevstringutokutoknumutokval((u-/opt/alt/python33/lib64/python3.3/tokenize.pyucompat	s8	

	

		uUntokenizer.compatN(u__name__u
__module__u__qualname__u__init__uadd_whitespaceu
untokenizeucompat(u
__locals__((u-/opt/alt/python33/lib64/python3.3/tokenize.pyuUntokenizer�s
uUntokenizercCs@t�}|j|�}|jdk	r<|j|j�}n|S(uTransform tokens back into Python source code.
    It returns a bytes object, encoded using the ENCODING
    token, which is the first token sequence output by tokenize.

    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 bytes will tokenize the back to the input
        t1 = [tok[:2] for tok in tokenize(f.readline)]
        newcode = untokenize(t1)
        readline = BytesIO(newcode).readline
        t2 = [tok[:2] for tok in tokenize(readline)]
        assert t1 == t2
    N(uUntokenizeru
untokenizeuencodinguNoneuencode(uiterableuutuout((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu
untokenize.s
	cCsd|dd�j�jdd�}|dks=|jd�rAdS|d
ks\|jd�r`dS|S(u(Imitates get_normal_name in tokenizer.c.Niu_u-uutf-8uutf-8-ulatin-1u
iso-8859-1uiso-latin-1ulatin-1-uiso-8859-1-uiso-latin-1-(ulatin-1u
iso-8859-1uiso-latin-1(ulatin-1-uiso-8859-1-uiso-latin-1-(ulowerureplaceu
startswith(uorig_encuenc((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu_get_normal_nameIs"u_get_normal_namecs4y�jj�Wntk
r*d�YnXd	�d}d}�fdd�}��fdd�}|�}|jt�r�d
�|dd�}d}n|s�|gfS||�}|r�||gfStj	|�s�||gfS|�}|s||gfS||�}|r$|||gfS|||gfS(u
    The detect_encoding() function is used to detect the encoding that should
    be used to decode a Python source file.  It requires one argument, readline,
    in the same way as the tokenize() generator.

    It will call readline a maximum of twice, and return the encoding used
    (as a string) and a list of any lines (left as bytes) it has read in.

    It detects the encoding from the presence of a utf-8 bom or an encoding
    cookie as specified in pep-0263.  If both a bom and a cookie are present,
    but disagree, a SyntaxError will be raised.  If the encoding cookie is an
    invalid charset, raise a SyntaxError.  Note that if a utf-8 bom is found,
    'utf-8-sig' is returned.

    If no encoding is specified, then the default of 'utf-8' will be returned.
    uutf-8cs(y��SWntk
r#dSYnXdS(Ns(u
StopIteration((ureadline(u-/opt/alt/python33/lib64/python3.3/tokenize.pyuread_or_stopls
u%detect_encoding.<locals>.read_or_stopcs;y|jd�}WnEtk
rZd}�dk	rJdj|��}nt|��YnXtj|�}|stdSt|jd��}yt	|�}WnIt
k
r��dkr�d|}ndj�|�}t|��YnX�r7|dkr*�dkrd}ndj��}t|��n|d	7}n|S(
Nuutf-8u'invalid or missing encoding declarationu{} for {!r}iuunknown encoding: uunknown encoding for {!r}: {}uencoding problem: utf-8u encoding problem for {!r}: utf-8u-sig(udecodeuUnicodeDecodeErroruNoneuformatuSyntaxErroru	cookie_reumatchu_get_normal_nameugroupulookupuLookupError(ulineuline_stringumsgumatchuencodingucodec(u	bom_foundufilename(u-/opt/alt/python33/lib64/python3.3/tokenize.pyufind_cookiers6


			
u$detect_encoding.<locals>.find_cookieiNu	utf-8-sigFT(
u__self__unameuAttributeErroruNoneuFalseu
startswithuBOM_UTF8uTrueublank_reumatch(ureadlineuencodingudefaulturead_or_stopufind_cookieufirstusecond((u	bom_foundufilenameureadlineu-/opt/alt/python33/lib64/python3.3/tokenize.pyudetect_encodingTs8
&		


	
cCsVtj|d�}t|j�\}}|jd�t||dd�}d|_|S(uXOpen a file in read only mode using the encoding detected by
    detect_encoding().
    urbiuline_bufferingurT(ubuiltinsuopenudetect_encodingureadlineuseeku
TextIOWrapperuTrueumode(ufilenameubufferuencodingulinesutext((u-/opt/alt/python33/lib64/python3.3/tokenize.pyuopen�s
	uopencCs_ddlm}m}t|�\}}t|d�}|d�}t||||�j|�S(u�
    The tokenize() 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 bytes.  Alternately, readline
    can be a callable function terminating with StopIteration:
        readline = open(myfile, 'rb').__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.

    The first token sequence will always be an ENCODING token
    which tells you which encoding was used to decode the bytes stream.
    i(uchainurepeats(u	itertoolsuchainurepeatudetect_encodinguiteru	_tokenizeu__next__(ureadlineuchainurepeatuencodinguconsumedurl_genuempty((u-/opt/alt/python33/lib64/python3.3/tokenize.pyutokenize�s
ccsd}}}d}d\}}d}dg}	|dk	rj|dkrPd}ntt|ddd�VnxMy
|�}
Wntk
r�d}
YnX|dk	r�|
j|�}
n|d7}dt|
�}}|r�|
s�td|
��n|j|
�}|rZ|jd�}}tt	||
d|�|
||f||
�Vd\}}d}ql|r�|
d d�d
kr�|
d!d�dkr�tt
||
|
|t|
�f|�Vd}d}qmql||
}||
}qmn�|dkrH|rH|
s�Pnd}xv||krz|
|d
kr.|d7}n?|
|dkrS|tdt}n|
|dkrld}nP|d7}qW||kr�Pn|
|dkr�|
|dkr7|
|d�jd�}|t|�}tt
|||f||t|�f|
�Vtt|
|d�||f|t|
�f|
�Vqmttt
f|
|dk|
|d�||f|t|
�f|
�Vqmn||	d"kr�|	j|�tt|
d|�|df||f|
�Vnx�||	d#krD||	krtdd|||
f��n|	dd$�}	ttd||f||f|
�Vq�Wn$|
sftd|df��nd}xH||kr�tt�j|
|�}|r~|jd�\}}||f||f|}}}||kr�qon|
||�|
|}}||ks+|dkrE|dkrE|dkrEtt||||
�Vq�|dkr}t|dkrftnt||||
�Vq�|dkr�tt
||||
�Vq�|tkr<tt|�}|j|
|�}|r|jd�}|
||�}tt	||||f|
�Vq{||f}
|
|d�}|
}Pq�|tkst|dd	�tkst|dd�tkr�|d%dkr�||f}
tt|p�t|dp�t|d	�}|
|d�d}}|
}Pq{tt	||||
�Vq�|j�rtt||||
�Vq�|dkr2d}q�|dkrK|d7}n|dkrd|d8}ntt||||
�Vqott
|
|||f||df|
�V|d7}qoWqmx;|	dd�D])}ttd|df|dfd�Vq�Wttd|df|dfd�VdS(&Niu
0123456789uu	utf-8-siguutf-8siuEOF in multi-line stringiu\
iu\
u u	uu#
u#u
u3unindent does not match any outer indentation levelu
<tokenize>uEOF in multi-line statementu.u...u
u\u([{u)]}(ui(ii(ii(uii����i����i����i����i����i����(uNoneu	TokenInfouENCODINGu
StopIterationudecodeulenu
TokenErrorumatchuenduSTRINGu
ERRORTOKENutabsizeurstripuCOMMENTuNLuappenduINDENTuIndentationErroruDEDENTu_compileuPseudoTokenuspanuNUMBERuNEWLINEu
triple_quoteduendpatsu
single_quoteduisidentifieruNAMEuOPu	ENDMARKER(ureadlineuencodingulnumuparenlevu	continuedunumcharsucontstruneedcontucontlineuindentsulineuposumaxustrstartuendproguendmatchuenducolumnu
comment_tokenunl_posupseudomatchustartusposueposutokenuinitialuindent((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu	_tokenize�s		


	2



		$#' 
0* $ 
	


'u	_tokenizecCs
t|d�S(N(u	_tokenizeuNone(ureadline((u-/opt/alt/python33/lib64/python3.3/tokenize.pyugenerate_tokensssugenerate_tokensc
s�ddl}dd��dd�fdd�}|jdd�}|jdd	d
ddd
dd�|jdddddddd�|j�}y�|jr�|j}tj|d��}tt	|j
��}WdQXnd}ttj
j
d�}x^|D]V}|j}|jr |j}nd|j|j}	td|	t||jf�q�WWnbtk
r�}
z?|
jddd�\}}||
jd|||f�WYdd}
~
Xntk
r}
z5|
jd\}}||
jd|||f�WYdd}
~
Xn�tk
r=}
z||
|�WYdd}
~
Xntk
rk}
z||
�WYdd}
~
XnQtk
r�td�Yn6tk
r�}
z�d|
��WYdd}
~
XnXdS(NicSst|dtj�dS(Nufile(uprintusysustderr(umessage((u-/opt/alt/python33/lib64/python3.3/tokenize.pyuperrorzsumain.<locals>.perrorcsg|r+|f||f}�d|�n+|rH�d||f�n�d|�tjd�dS(Nu%s:%d:%d: error: %su
%s: error: %su	error: %si(usysuexit(umessageufilenameulocationuargs(uperror(u-/opt/alt/python33/lib64/python3.3/tokenize.pyuerror}sumain.<locals>.erroruprogupython -m tokenizeudestufilenameunargsu?umetavarufilename.pyuhelpu'the file to tokenize; defaults to stdinu-eu--exactuexactuactionu
store_trueu(display token names using the exact typeurbu<stdin>u%d,%d-%d,%d:u%-20s%-15s%-15riiuinterrupted
uunexpected error: %s(uargparseuNoneuArgumentParseruadd_argumentu
parse_argsufilenameubuiltinsuopenulistutokenizeureadlineu	_tokenizeusysustdinutypeuexactu
exact_typeustartuenduprintutok_nameustringuIndentationErroruargsu
TokenErroruSyntaxErroruIOErroruKeyboardInterruptu	Exception(
uargparseuerroruparseruargsufilenameufutokensutokenu
token_typeutoken_rangeuerrulineucolumn((uperroru-/opt/alt/python33/lib64/python3.3/tokenize.pyumainvsN		
		 //
umainu__main__(u'''u"""ur'''ur"""uR'''uR"""ub'''ub"""uB'''uB"""ubr'''ubr"""uBr'''uBr"""ubR'''ubR"""uBR'''uBR"""urb'''urb"""urB'''urB"""uRb'''uRb"""uRB'''uRB"""uu'''uu"""uU'''uU"""(u'u"ur'ur"uR'uR"ub'ub"uB'uB"ubr'ubr"uBr'uBr"ubR'ubR"uBR'uBR"urb'urb"urB'urB"uRb'uRb"uRB'uRB"uu'uu"uU'uU"(}u__doc__u
__author__u__credits__ubuiltinsucodecsulookupuBOM_UTF8ucollectionsuiou
TextIOWrapperu	itertoolsuchainureusysutokenucompileuASCIIu	cookie_reublank_reu__all__uN_TOKENSuCOMMENTutok_nameuNLuENCODINGuLPARuRPARuLSQBuRSQBuCOLONuCOMMAuSEMIuPLUSuMINUSuSTARuSLASHuVBARuAMPERuLESSuGREATERuEQUALuDOTuPERCENTuLBRACEuRBRACEuEQEQUALuNOTEQUALu	LESSEQUALuGREATEREQUALuTILDEu
CIRCUMFLEXu	LEFTSHIFTu
RIGHTSHIFTu
DOUBLESTARu	PLUSEQUALuMINEQUALu	STAREQUALu
SLASHEQUALuPERCENTEQUALu
AMPEREQUALu	VBAREQUALuCIRCUMFLEXEQUALuLEFTSHIFTEQUALuRIGHTSHIFTEQUALuDOUBLESTAREQUALuDOUBLESLASHuDOUBLESLASHEQUALuATuEXACT_TOKEN_TYPESu
namedtupleu	TokenInfougroupuanyumaybeu
WhitespaceuCommentuIgnoreuNameu	Hexnumberu	Binnumberu	Octnumberu	Decnumberu	IntnumberuExponentu
PointfloatuExpfloatuFloatnumberu
ImagnumberuNumberuStringPrefixuSingleuDoubleuSingle3uDouble3uTripleuStringuOperatoruBracketuSpecialuFunnyu
PlainTokenuTokenuContStruPseudoExtrasuPseudoTokenu_compileuNoneuendpatsu
triple_quotedutu
single_quotedutabsizeu	Exceptionu
TokenErroruStopTokenizinguUntokenizeru
untokenizeu_get_normal_nameudetect_encodinguopenutokenizeu	_tokenizeugenerate_tokensumainu__name__(((u-/opt/alt/python33/lib64/python3.3/tokenize.pyu<module>sF







"



	




N]�<