R
    ¢¤ÒjE[  ã            
       óV  €   Q s QsQs] QHGs ] QHGsGs ] PH$s	] PH(s
] QH,Gs ] PH4s] PH<s] PH@s] QHF3 ] QHDGs ] PHLs] PHQs\O*                   Q\O,                  2      s\O*                   Q	\O,                  2      s] PHDs\O2                  , QAN*           s?  Q Q
\	O4                   Q
Q2      2      sQ sQ sQ sQsQs \\ Q\*           2      *           \ \ 2      *           s!Qs"Qs#Qs$Qs%Qs&\ \#\$\%\&2      s'Qs(\ QQ2      \ \(2      *           s)Q\(*           s*\ \)\*2      s+\ Q\+Q*           2      s,\ \,\+\'2      s-Q s.\
O^                  Q  2       s0\ \. 2           s1Q!s2Q"s3Q#s4Q$s5\ \1Q%*           \1Q&*           2      s6\ \1Q'*           \1Q(*           2      s7\ \8 \Or                  \: \P	Q)5      2          s;\ Q*\;2      s<\ \-\<\7\"2      s=\!\=*           s>\ \1Q+*           \ Q,Q2      *           \1Q-*           \ Q.Q2      *           2      s?\ Q/\ \62      s@\\ \@\-\<\?\"2      *           sA- sB\. 2       F   D3  sC\2\B\CQ,*           $   \3\B\CQ.*           $   \4\B\CQ%*           $   \5\B\CQ&*           $   J5  	  ?C\D 2       sE\D 2       sF\. 2       F   DY  sG\GQ.*           \GQ,*           1F   D  sH\EO“                  \H2       J  	  \GQ&*           \GQ%*           1F   D  sH\FO“                  \H2       J  	  J[  	  ?G?H]sJ  Q0 Q\K2      sL  Q1 Q22      sMQ3 sNQ4 sOQ5 sPQ6 sQ7 sQQ8 sRQ9 sSQ:P
Q;P
-Q< ksTQBQ= ksUQ> sVQCQ? ksW\XQ@6X  c
   \U 2        P! P! )Dao  Tokenization 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.
zKa-Ping Yee <ping@lfw.org>zpGvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, Skip Montanaro, Raymond Hettinger, Trent Nelson, Michael Foord)Úopen)ÚlookupÚBOM_UTF8)ÚTextIOWrapper©Ú*)ÚEXACT_TOKEN_TYPESs&   ^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)s   ^[ \t\f]*(?:[#\r\n]|$)Ú	TokenInfoÚ
TokenErrorc                   ó8   ` €   \ sQ s]0s n Q s\Q 2       sQsU sP! )r	   c                óŠ   €   Q U O                   [        U O                   *          1*          oQU O                  UQ5      *          ! )z%d (%s)z8TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r))Útype)r   Útok_nameÚ_replace)ÚselfÚannotated_types   & Ú%/usr/local/lib/python3.15/tokenize.pyÚ__repr__ÚTokenInfo.__repr__1   s9   � Ø" d§i¡i´¸$¿)¹)Õ1DÐ%EÕEˆØJØ—‘ >�Ó2õ3ð 	4ó    c                óž   €   U O                   [        6X  c-   U O                  [        7   c   [        U O                  *          ! U O                   ! ©N)r   ÚOPÚstringr   ©r   s   &r   Ú
exact_typeÚTokenInfo.exact_type6   s2   � à�9‰9œŒ?˜tŸ{™{Ô.?Ô?Ü$ T§[¡[Õ1Ð1à—9‘9Ðr   © )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   Úpropertyr   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r	   r	   0   s   ø‡ � ò4ð
 ñó ör   ztype string start end linec                  óB   €   Q QO                  U 2      *           Q*           ! )Ú(Ú|Ú))Újoin©Úchoicess   *r   Úgroupr.   =   s   � ˜C #§(¡(¨7Ó"3Õ3°cÕ9Ð9r   c                  ó&   €   [        U     Q *           ! r   ©r.   r,   s   *r   Úanyr1   >   s   � œ% š/¨CÕ/Ð/r   c                  ó&   €   [        U     Q *           ! )Ú?r0   r,   s   *r   Úmayber4   ?   s   � œE 7šO¨cÕ1Ð1r   z[ \f\t]*z	#[^\r\n]*z\\\r?\nz\w+z0[xX](?:_?[0-9a-fA-F])+z0[bB](?:_?[01])+z0[oO](?:_?[0-7])+z(?:0(?:_?0)*|[1-9](?:_?[0-9])*)z[eE][-+]?[0-9](?:_?[0-9])*z)[0-9](?:_?[0-9])*\.(?:[0-9](?:_?[0-9])*)?z\.[0-9](?:_?[0-9])*z[0-9](?:_?[0-9])*z[0-9](?:_?[0-9])*[jJ]z[jJ]c                  ó*  €   , QNo P.oS F   D~  o[         O                   U2      F   D`  o[         O                   STt, tF   D  pDUO                  2       1MJ  	  to    F   D#  oUO	                  PO                  U2      2       J%  	  Jb  	  J€  	  U! t toh )Úb)r6   ÚrÚuÚfÚtÚbrÚfrÚtr)Ú
_itertoolsÚpermutationsÚproductÚupperÚaddr+   )Ú_valid_string_prefixesÚresultÚprefixr:   Úcr8   s         r   Ú_all_string_prefixesrG   V   s�   � ò IÐàˆT€FÜ(ˆÜ×(Ò(¨×0ˆAô  ×'Ò'À!Ó)DÃ!¸Q¨a¯g©g«i«.Á!Ñ)DÖE�Ø—
‘
˜2Ÿ7™7 1›:Ö&ó Fó 1ñ )ð €Mùò *Es   ¼Bc                 óN   €   [         O                   U [         O                  2      ! r   )ÚreÚcompileÚUNICODE)Úexprs   &r   Ú_compilerM   e   s   � ä�:Š:�dœBŸJ™JÓ'Ð'r   z[^'\\]*(?:\\.[^'\\]*)*'z[^"\\]*(?:\\.[^"\\]*)*"z%[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''z%[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""z'''z"""z'[^\n'\\]*(?:\\.[^\n'\\]*)*'z"[^\n"\\]*(?:\\.[^\n"\\]*)*")Úreversez\r?\nz'[^\n'\\]*(?:\\.[^\n'\\]*)*Ú'z"[^\n"\\]*(?:\\.[^\n"\\]*)*Ú"z
\\\r?\n|\zc                   ó   €   \ sQ s]£sQsP! )r
   r   )r   r   r    r!   r#   r   r   r   r
   r
   £   s   ‡ ›Tr   c                   óF   ` €   \ sQ s]¦s n Q sQ sQ sQ sQ sQ s	Qs
U sP! )ÚUntokenizerc                ó\   €   , U m         ]U m        ] U m        PU m        PU m        PU m        P! ©é   )ÚtokensÚprev_rowÚprev_colÚ	prev_typeÚ	prev_lineÚencodingr   s   &r   Ú__init__ÚUntokenizer.__init__¨   s,   � ØˆŒØˆŒØˆŒØˆŒØˆŒØˆŽr   c                ón  €   Uv  q#V O                   6  f!   V O                   6X  cA   V0O                  6  c1   [        Q O                  V#U O                   U O                  2      2      gU O	                  U2       V0O                  *
          oU%       c%   U O
                  O                  QU*          2       P! P! )z+start ({},{}) precedes previous end ({},{})Ú )rX   rY   Ú
ValueErrorÚformatÚadd_backslash_continuationrW   Úappend)r   ÚstartÚrowÚcolÚ
col_offsets   &&   r   Úadd_whitespaceÚUntokenizer.add_whitespace°   s†   � Ø‰ˆØ—‘Ô #¯©Ô"6¸3ÇÁÔ;NÜÐJß$™f S¨t¯}©}¸d¿m¹mÓLóNð Nà×'Ñ'¨Ô.ØŸ=™=Õ(ˆ
ßØ�K‰K×Ñ˜s ZÕ/Ö0ñ r   c                ó°  €   U] *          oV O                   *
          oU] 6X  c   P! U O                  O                  Q2      %       c   QLQoU O                  O                  Q2      oPO	                  [
        O                   [        O                  [        U2      2      2      oU O                  O                  UQU 0U*          *           2       ] U m        P! )z¯Add backslash continuation characters if the row has increased
without encountering a newline token.

This also inserts the correct amount of whitespace before the backslash.
z
Ú
z\
Ú\)rX   r[   ÚendswithÚrstripr+   r>   Ú	takewhileÚstrÚisspaceÚreversedrW   rd   rY   )r   re   rf   Ú
row_offsetÚnewlineÚlineÚwss   &&     r   rc   Ú&Untokenizer.add_backslash_continuationº   sž   � ð �A�hˆØŸ=™=Õ(ˆ
Ø˜Œ?Ùà ŸN™N×3Ñ3°F×;Ò;‘&ÀˆØ�~‰~×$Ñ$ XÓ.ˆØ�W‰W”Z×)Ò)¬#¯+©+´xÀ³~ÓFÓGˆØ�‰×Ñ˜2 " W I °Õ ;Õ;Ô<ØˆŽr   c                óŒ  €   , oP
oSF   D¨  oUQ6X  c   U%       c   P
oLUO                  U2       UQ6X  ck   [        Q [        O                   QO                  UQPP/*          2      2       2      oU]*          ] 6X  f   UP*          Q6w  c   UO                  U2       LP	oUO                  U2       Jª  	  PO                  U2      ! )FÚ}Ú{c              3   ó2   €  S F      €   D  o]w €	   J
  	  P! 3hrU   r   )Ú.0Úchars   & r   Ú	<genexpr>Ú.Untokenizer.escape_brackets.<locals>.<genexpr>Õ   s   ùò#é� ñ#˜$–Aó #ùs   ‡rm   ÚNéþÿÿÿ)rd   Úsumr>   rp   Ú__eq__r+   )r   ÚtokenÚ
charactersÚconsume_until_next_bracketÚ	characterÚn_backslashess   &&    r   Úescape_bracketsÚUntokenizer.escape_bracketsË   sÂ   � Øˆ
Ø%*Ð"ÜˆIØ˜CÔß-Ø16Ñ.à×%Ñ% iÔ0Ø˜CÔÜ #ñ $Ü",×"6Ò"6ØŸ™Ø" 2 6 r 6Õ*ó#ó$ó !�ð ! 1Õ$¨Ô)¨Z¸­^¸sÔ-BØ×%Ñ% iÕ0à15Ð.Ø×Ñ˜iÖ(ñ# ð$ �w‰w�zÓ"Ð"r   c                ól  €   [        U2      o, oP
oSF   CD  o[        U2      ]6X  c   U O                  VR2         CLÞUv  qgq‰o
U[        6X  c	   Vpm        JB  U[
        6X  c     CL¶U[        6X  c   UO                  U2       Jo  U[        6X  c"   UO                  2        U	v  U m
        U m        J›  U[        [        17   c   P	oLÛU%       cW   U%       cO   UP*          oU]*          [        U2      6¼  c,   U O                  O                  U2       [        U2      U m        P
oL}U[        [         .7   cm   QU7   f   QU7   c_   U O#                  U2      oUO$                   2       P*          oU	v  qÞUO'                  Q2      UO'                  Q2      *           oVÞU*           1o	U O)                  U2       U O                  O                  U2       U	v  U m
        U m        U[        [        17   c!   U 9O                  ]*          tm
        ] U m        V`m        V m        CJ  	  PO/                  U O                  2      ! )Fr{   rz   z{{z}})ÚiterÚlenÚcompatÚENCODINGr\   Ú	ENDMARKERÚINDENTrd   ÚDEDENTÚpoprX   rY   ÚNEWLINEÚNLrW   ÚFSTRING_MIDDLEÚTSTRING_MIDDLErŠ   Ú
splitlinesÚcountri   rZ   r[   r+   )r   ÚiterableÚitÚindentsÚ	startliner:   Útok_typer…   re   Úendrv   ÚindentÚ	last_lineÚend_lineÚend_colÚextra_charss   &&              r   Ú
untokenizeÚUntokenizer.untokenizeâ   sÈ  � Ü�(‹^ˆØˆØˆ	ÝˆAÜ�1‹v˜Œ{Ø—‘˜AÔ"ÛØ01Ñ-ˆH˜U¨Øœ8Ô#Ø %”ÙØœ9Ô$ÛØœ6Ô!Ø—‘˜uÔ%ÙØœVÔ#Ø—‘”Ø/2Ñ,�”˜tœ}ÙØœg¤r˜]Ô*Ø ‘	ßŸwØ  ��Ø˜•8œs 6›{Ô*Ø—K‘K×&Ñ& vÔ.Ü$'¨£K�D”MØ!‘	Øœn¬nÐ=Ô=Ø˜%”< 3¨%¤<Ø ×0Ñ0°Ó7�EØ %× 0Ò 0Ó 2°2Õ 6�IØ(+Ñ%�HØ"+§/¡/°$Ó"7¸)¿/¹/È$Ó:OÕ"O�KØ#¨{Õ%:Ð;�Cà×Ñ Ô&Ø�K‰K×Ñ˜uÔ%Ø+.Ñ(ˆDŒM˜4œ=ØœG¤R˜=Ô(Ø—’ Õ"•Ø !�”Ø%ŒNØ!�NñQ ðR �w‰w�t—{‘{Ó#Ð#r   c                ó   €   , oU O                   O                  oU] *          [        [        17   oP
o] o[        O
                   U,U2      F   CD¼  oUQ*          v  qšU	[        6X  c	   V m        J"  U	[        [        17   c
   U
Q*          o
U	[        6X  c   U%       c
   QU
*           o
P	oLP
oU	[        [        .7   c   U]*          oLU	[        [        .7   c
   U]*          oU	[        6X  c   UO                  U
2       J°  U	[         6X  c   UO#                  2        JÍ  U	[        [        17   c   P	oLDU%       c   U%       c   U UP*          2       P
oL"U	[$        [&        .7   c   U O)                  U
2      o
U
Q7   c<   U O                   %       c*   U O                   P*          U
6X  c   U%       c
   QU
*           o
U	[        [        17   c7   U O*                  [        [        17   c   U O                   O                  Q2       U U
2       V�m        CJ¿  	  P! )é    :Né   Nr`   >   r{   rz   )rW   rd   r•   r–   r>   Úchainr�   r\   ÚNAMEÚNUMBERÚSTRINGÚFSTRING_STARTÚTSTRING_STARTÚFSTRING_ENDÚTSTRING_ENDr’   r“   r”   r—   r˜   rŠ   rZ   )r   r…   r›   r�   Útoks_appendrž   Ú
prevstringÚin_fstring_or_tstringÚtokÚtoknumÚtokvals   &&&        r   r�   ÚUntokenizer.compat  s«  � ØˆØ—k‘k×(Ñ(ˆØ˜!•H¤¬" Ñ-ˆ	Øˆ
Ø !Ðä×#Ò# U G¨X×6Ð6ˆCØ  �W‰NˆFØœÔ!Ø &”Ùàœ$¤˜Ô'Ø˜#•�ð œÔßØ  6�\�FØ!‘
à"�
àœ-¬Ð7Ô7Ø%¨Õ*Ñ%ØœK¬Ð5Ô5Ø%¨Õ*Ð%ØœÔØ—‘˜vÔ&ÙØœ6Ô!Ø—‘”ÙØœG¤R˜=Ô(Ø ‘	ßŸwÙ˜G B�KÔ(Ø!‘	ØœN¬NÐ;Ô;Ø×-Ñ-¨fÓ5�ð ˜Ô#¨¯¯¨¸¿¹ÀB½È6Ô8Q×VkØ˜v��ð œ&¤-Ð0Ô0°T·^±^ÌÔP[ÐG\Ô5\Ø—‘×"Ñ" 3Ô'á˜ÔØ#�NóY 7r   )r\   rY   r[   rX   rZ   rW   )r   r   r    r!   r]   ri   rc   rŠ   r¦   r�   r#   r$   r%   s   @r   rS   rS   ¦   s)   ø‡ � òò1òò"#ò.-$÷^3$ð 3$r   rS   c                ó�   €   [        2       oUO                  U 2      oUO                  d   UO                  UO                  2      oU! )aU  Transform 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.

The result is guaranteed to tokenize back to match the input so
that the conversion is lossless and round-trips are assured.
The guarantee applies only to the token type and token string as
the spacing between tokens (column positions) may change.
)rS   r¦   r\   Úencode)r›   ÚutÚouts   &  r   r¦   r¦   G  s:   � ô 
‹€BØ
�-‰-˜Ó
!€CØ	‡{�{ÒØ�j‰j˜Ÿ™Ó%ˆØ€Jr   c                óÖ   €   U Q*          O                  2       O                  QQ2      oUQ6X  f   UO                  Q2      %       c   Q! UQ7   f   UO                  Q2      %       c   Q! U ! )	z7Imitates get_normal_name in Parser/tokenizer/helpers.c.:Né   NÚ_Ú-úutf-8zutf-8-ú
iso-8859-1)zlatin-1rÃ   ziso-latin-1)zlatin-1-ziso-8859-1-ziso-latin-1-)ÚlowerÚreplaceÚ
startswith)Úorig_encÚencs   & r   Ú_get_normal_namerÉ   \  s\   � ð �3�-×
Ñ
Ó
×
'Ñ
'¨¨SÓ
1€CØ
ˆg„~˜Ÿ™¨×1Ò1ÙØ
Ð6Ô6Ø
‡~�~ÐA×BÒBÙØ€Or   c                ó2  ` ``	€    R O                   O                  n	P
nPoQoU 1Q koU	1Q koUU	1Q koU 2       oUO                  [        2      %       c   P	nUQ*          oQoU%       f   U, 1! U U2      oU%       c   U Va2       V,1! [
        O                  U2      %       f   U Vb2       V&,1! U 2       oU%       f   U Vb2       V&,1! U U2      oU%       c   U Vg*           U2       VU,1! U Vg*           U2       V&U,1!  [         c    Pn	 Kùh 9 h)aß  
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.
rÂ   c                  ó:   :€    R  2       !  [          c     Q ! h 9 h)r   )ÚStopIteration©Úreadlines   €r   Úread_or_stopÚ%detect_encoding.<locals>.read_or_stop  s"   ø� ð	Ù“:ÐøÜô 	Úð	ús   „ ‹	•™c                 ó¶   :€   ] U 7   c   [        Q2      g U O                  U2       P!  [         c%    QoRd   QO                  SR2      o[        S2      gh 9 h)r©   z%source code cannot contain null bytesz'invalid or missing encoding declarationz{} for {!r})ÚSyntaxErrorÚdecodeÚUnicodeDecodeErrorrb   )rv   r\   ÚmsgÚfilenames   && €r   ÚcheckÚdetect_encoding.<locals>.check…  s^   ø� à�Œ9ÜÐEÓFÐFð	#Ø�K‰K˜Ö!øÜ!ô 	#Ø;ˆCØÒ#Ø#×*Ñ*¨3°Ó9�Ü˜cÓ"Ð"ð		#ús   –) ©	A³AºAc                 óš  :€   [         O                  U 2      oU%       f   P! [        UO                  ]2      O	                  2       2      o [        U2       R%       c4   UQ6w  c$   Re   QoLQO                  R2      o[        U2      gUQ*          oU!  [         c-    Re   QS*           oLQO                  RS2      o[        S2      gh 9 h)Nzunknown encoding: zunknown encoding for {!r}: {}rÂ   zencoding problem: utf-8z encoding problem for {!r}: utf-8z-sig)	Ú	cookie_reÚmatchrÉ   r.   rÓ   r   ÚLookupErrorrb   rÒ   )rv   rÛ   r\   rÕ   Ú	bom_foundrÖ   s   &   €€r   Úfind_cookieÚ$detect_encoding.<locals>.find_cookie‘  sÂ   ø� Ü—‘ Ó%ˆßÙÜ# E§K¡K°£N×$9Ñ$9Ó$;Ó<ˆð		#Ü�8Ô÷ Ø˜7Ô"àÒ#Ø3‘Cà<×CÑCÀHÓM�CÜ! #Ó&Ð&Ø˜ÕˆHØˆøô% ô 	#àÒØ*¨XÕ5‘à5×<Ñ<¸XØ ó"�ä˜cÓ"Ð"ð	#ús   ÁB Â	C
ÂC
Â"(C
:é   NNú	utf-8-sig)Ú__self__ÚnameÚAttributeErrorrÆ   r   Úblank_rerÛ   )
rÎ   r\   ÚdefaultrÏ   r×   rÞ   ÚfirstÚsecondrÝ   rÖ   s
   f       @@r   Údetect_encodingré   g  s(  ú� ð"Ø×$Ñ$×)Ñ)ˆð €IØ€HØ€Gõõ
#öñ6 ‹N€EØ×Ñœ×!Ò!Øˆ	Ø�b•	ˆØˆßØ˜ˆ{Ðá˜5Ó!€HßÙˆeÔØ˜Ð Ð Ü�>‰>˜%× Ò ÙˆeÔØ˜ÐÐá‹^€FßÙˆeÔØ˜ÐÐá˜6Ó"€HßÙˆe�n˜hÔ'Ø ˜Ð(Ð(á	ˆ%�.˜'Ô"Ø˜F�OÐ#Ð#øô[ ô ØŠðús   †D Ä	DÄDÄDc                óÆ   €   [        U Q2      o [        UO                  2      v  q#UO                  ] 2       [	        VP	Q5      oQUm        U!   SO                  2        g 9 h)zPOpen a file in read only mode using the encoding detected by
detect_encoding().
Úrb)Úline_bufferingr7   )Ú_builtin_openré   rÎ   Úseekr   ÚmodeÚclose)rÖ   Úbufferr\   ÚlinesÚtexts   &    r   r   r   Ê  s[   � ô ˜8 TÓ*€FðÜ)¨&¯/©/Ó:‰ˆØ�‰�AŒÜ˜V¸dÔCˆØˆŒ	ØˆøðØ�‰ŒØús   �=A ÁA c              #  óú      €   [        U 2      v  q[        O                   U[        U Q2      2      oUd    UQ6X  c   Qo[	        [
        UQQP2      w €	   [        UO                  UP	Q5      F  Pi  w€  K
  P!  K3h)a�  
The tokenize() generator requires one argument, 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.  Alternatively, 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
physical line.

The first token sequence will always be an ENCODING token
which tells you which encoding was used to decode the bytes stream.
r   rá   rÂ   ©Úextra_tokens)r©   r©   )ré   r>   r«   r�   r	   r�   Ú!_generate_tokens_from_c_tokenizerÚ__next__)rÎ   r\   ÚconsumedÚrl_gens   &   r   Útokenizerû   Ù  sj   é � ô& )¨Ó2Ñ€HÜ×Ò˜h¬¨X°sÓ(;Ó<€FØÒØ�{Ô"àˆHÜœ (¨F°F¸BÓ?Ó?Ü0°·±À(ÐY]Ô^×^Ö^ùs   ‚3A;¶A;½4A;Á1A9Á2A;c                ó   €   [        U P	Q5      ! )z·Tokenize a source reading Python code as unicode strings.

This has the same API as tokenize(), except that it expects the *readline*
callable to return str objects instead of bytes.
rõ   )r÷   rÍ   s   &r   Úgenerate_tokensrý   õ  s   � ô -¨XÀDÔIÐIr   c                ó   €   [        - [        U O                  a[        UO                  a[
        UO                  a[        UO                  a[        UO                  a[        U O                  a[        U O                  a[        U O                  a[        UO                  a[        U O                  a[         UO                  a["        UO                  a[$        U O&                  a[(        U O*                  a[,        U O.                  a[0        U O                  a[2        U O                  a[4        U O                  [6        U O                  -A2      ! )z'Map token type numbers to theme colors.)Ú
frozendictÚCOMMENTÚcommentr“   Ú
whitespacer�   r‘   Ú
ERRORTOKENÚerrorr¯   r   r—   r±   r’   r¬   Úresetr•   r–   r­   Únumberr   ÚopÚSOFT_KEYWORDÚsoft_keywordr®   r°   r˜   r²   )Úsyntaxrû   s   &&r   Ú_get_token_colorsr  þ  sG  � äð Ü�—‘ðä�×#Ñ#ðô 	�(×%Ñ%ðô 	�8×&Ñ&ð	ô
 	�H—N‘Nðô 	�v—}‘}ðô 	˜Ÿ™ðô 	�V—]‘]ðô 	�×#Ñ#ðô 	ˆf�l‰lðô 	�×$Ñ$ðô 	ˆH×Ñðô 	�—‘ðô 	ˆF�I‰Iðô 	�f×)Ñ)ðô  	�—‘ð!ô" 	�v—}‘}ð#ô$ 	˜Ÿ™Ü�V—]‘]ñ'ó ð r   ÚcolorÚexactc             #   óÎ     €   [         O                   U%       ( Q 5      oUO                  oUO                  o[	        VE2      oS F   CD˜  oUO
                   UO                  ] *           UO                   QUO
                   UO                  ]*           UO                   QUO
                   UO                  ] *           UO                   QUO
                   UO                  ]*           UO                   Q0oUO                  UO                  UO                  2      o	[        U%       c   UO                  LUO                  *          o
UO                  ] *           QUO                  ]*           QUO                  ] *           QUO                  ]*           Q0oU Q][        U2      *
          *           U	 U
Q UO                   UO                  8Q 0w €	   CJ›  	  P! 3h))Úforce_no_colorÚ,rÁ   Ú:r`   z<15)Ú	_colorizeÚ	get_themer
  rû   r  Úpositionre   Ú	delimiterr    Úgetr   r  r   r   rŽ   r   )rW   r  r  ÚthemeÚsr:   Útoken_colorsr…   Útoken_rangeÚtoken_colorÚ
token_nameÚvisible_ranges   &$$         r   Ú_format_tokensr    sƒ  é � Ü×Ò°5¬yÔ9€EØ�‰€AØ�‰€AÜ$ QÓ*€LÝˆà�z‰zˆl˜5Ÿ;™; q�>Ð*Ø�{‰{ˆm˜1˜QŸZ™Z˜L¨¯©°Q­Ð(8Ø�{‰{ˆm˜1Ø�z‰zˆl˜5Ÿ9™9 Q�<˜.Ø�{‰{ˆm˜1˜QŸZ™Z˜L¨¯©°1­¨Ø�{‰{ˆm˜1ðð 	ð #×&Ñ& u§z¡z°1·7±7Ó;ˆÜ·%˜e×.Ò.¸U¿Z¹ZÕHˆ
Ø Ÿ;™; q�>Ð*¨!¨E¯K©K¸­NÐ+;¸1¸U¿Y¹YÀq½\¸NÈ!ÈEÏIÉIÐVWÍLÈ>ÐYZÐ[ˆàˆm˜C 2¬¨MÓ(:Õ#:Õ;Ð<Øˆm˜J sÐ+Ø�w‰wˆi˜Ÿ™Ð+ sÐ+ð-ö	
ó ùs   ‚D,G%Ä/B6G%c                 óJ  `
€   ] PHoQ n
QU
1Q kkoUO                  2       oUO                  QQQQQ5       UO                  QQ	Q
QQQ5       UO                  U 2      o  U O                  %       cI   U O                  o[        UQ2      9^tt^ 2       o[        [        UO                  2      2      oPPP2       L'Qo[        [        O                  O                  P	Q5      o[        WP	U O                  Q5      F   D  o[        U2       J  	  P!  ) %       f   h     K=9 h [         cD   oSO                   ]*          Q*          v  qyS SO                   ] *          WXy12        Po=P! Po=h["         c=   oSO                   ]*          v  qyS SO                   ] *          WXy12        Po=P! Po=h[$         c   oS SW2        Po=P! Po=h[&         c   oS S2        Po=P! Po=h[(         c    [        Q2        P! [*         c   oR
 QS*          2       g Po=hh 9 h)r©   c                 ó„   €   [         O                  O                  U 2       [         O                  O                  Q 2       P! )rl   )ÚsysÚstderrÚwrite)Úmessages   &r   ÚperrorÚ_main.<locals>.perror3  s&   � Ü�
‰
×Ñ˜Ô!Ü�
‰
×Ñ˜Ör   c                 óØ   :€   U%       c#   U1U*           U 1*           oR Q U*          2       L'U%       c   R U8 QU 8 02       LR QU *          2       [         O                   ]2       P! )z%s:%d:%d: error: %sz	: error: z	error: %s)r!  Úexit)r$  rÖ   ÚlocationÚargsr%  s   &&& €r   r  Ú_main.<locals>.error7  sO   ø� ßØ�; Õ)¨W¨JÕ6ˆDÙÐ(¨4Õ/Õ0ßÙ£h²Ð8Õ9á�; Õ(Ô)Ü�Š�Žr   rÖ   r3   zfilename.pyz)the file to tokenize; defaults to `stdin`)ÚdestÚnargsÚmetavarÚhelpz-ez--exactr  Ú
store_truez(display token names using the exact type)r,  Úactionr/  rë   z<stdin>rõ   )r  r  :rV   rà   Nzinterrupted
zunexpected error: %s)NN)ÚargparseÚArgumentParserÚadd_argumentÚ
parse_argsrÖ   rí   Úlistrû   rÎ   r÷   r!  Ústdinr  r  ÚprintÚIndentationErrorr*  r
   rÒ   ÚOSErrorÚKeyboardInterruptÚ	Exception)r*  r2  r  ÚparserrÖ   r9   rW   rv   ÚerrÚcolumnr%  s   &         @r   Ú_mainr@  /  s¾  ø� Ûò÷ð ×$Ñ$Ó&€FØ
×Ñ˜Z¨sØ -ØHð ô Jð ×Ñ˜˜i¨g¸lØGð ô Ià×Ñ˜TÓ"€Dðà�=�=ˆ=Ø—}‘}ˆHÜ˜x¨×.Ô.°!Üœh q§z¡zÓ2Ó3�÷ /Ð.ð !ˆHÜ6Ü—	‘	×"Ñ"°ô7ˆFô
 # 6°¸T¿Z¹Z×HÐHˆDÜ�$ŽKó I÷ /×.ûô ô 5Ø—x‘x •{ 3Õ'‰ˆÙˆc�h‰h�q�k˜8 d ^×4Ò4ûÜô 5Ø—x‘x •{‰ˆÙˆc�h‰h�q�k˜8 d ^×4Ò4ûÜô Ùˆc�8×ÒûÜô Ùˆc�
Š
ûÜô Üˆo×Üô ÙÐ%¨Õ+Ô,Øûðús—   ÁD  Á1 D  ÂDÂ0AD  ÄD	ÄD	ÄD  Ä 	H"Ä*H"Ä+8E)Å)H"Å6H"Å71F.Æ.H"Æ;H"Æ<	GÇH"ÇH"ÇG'Ç'H"Ç4H"ÈH"ÈH"ÈHÈH"c                ó   €   QU 7   c   Q! U ! )zÇTransform error messages from the C tokenizer into the Python tokenize

The C tokenizer is more picky than the Python one, so we need to massage
the error messages a bit for backwards compatibility.
z)unterminated triple-quoted string literalzEOF in multi-line stringr   )rÕ   s   &r   Ú_transform_msgrB  i  s   � ð 3°cÔ9Ù)Ø€Jr   c              #  ó€     €   Ue   [         O                   VQ5      oL[         O                   VUQ5      o SF   D  o[        O                  U2      w €   J  	  P!  [         cT   o[        S2      [        6w  c   SPg[        SO                  2      o[        XeO                  SO                  12      PgPo=hh 9 h3h)zWTokenize a source reading Python code as unicode strings using the internal C tokenizerrõ   )r\   rö   )Ú	_tokenizeÚTokenizerIterr	   Ú_makerÒ   r   rB  rÕ   r
   ÚlinenoÚoffset)Úsourcer\   rö   rœ   ÚinfoÚerÕ   s   &&&    r   r÷   r÷   s  s–   é � àÒÜ×$Ò$ VÔG‰ä×$Ò$ VÈ\ÔZˆð>ÜˆDÜ—/‘/ $Ó'Õ'ó øäô >Ü�‹7”kÔ!Ø˜ÐÜ˜QŸU™UÓ#ˆÜ˜Ÿx™x¨¯©Ð2Ó3¸Ð=ûð	>üs9   ‚B>ˆ0B>¹"A ÁB>Á	B;Á'B;Á(B6Á<:B6Â6B;Â;B>Ú__main__)rû   rý   ré   r¦   r	   r   r
   r   )NF)YÚ__doc__Ú
__author__Ú__credits__Úbuiltinsr   rí   Úcodecsr   r   ÚcollectionsÚ	functoolsÚior   Ú	itertoolsr>   rI   r!  r…   r   rD  r  rJ   ÚASCIIrÚ   rå   Ú__all__Ú
namedtupler	   r.   r1   r4   Ú
WhitespaceÚCommentÚIgnoreÚNameÚ	HexnumberÚ	BinnumberÚ	OctnumberÚ	DecnumberÚ	IntnumberÚExponentÚ
PointfloatÚExpfloatÚFloatnumberÚ
ImagnumberÚNumberrG   Ú	lru_cacherM   ÚStringPrefixÚSingleÚDoubleÚSingle3ÚDouble3ÚTripleÚStringÚmapÚescapeÚsortedÚSpecialÚFunnyÚ
PlainTokenÚTokenÚContStrÚPseudoExtrasÚPseudoTokenÚendpatsÚ_prefixÚsetÚsingle_quotedÚtriple_quotedr:   r8   rB   Útabsizer<  r
   rS   r¦   rÉ   ré   rû   rý   r  r  r@  rB  r÷   r   r   r   r   Ú<module>r€     s¥  ññð, *€
ð€õ +ß #Û Û Ý Û Û 	Û 
Ü Ý #Û Û à�JŠJÐAÀ2Ç8Á8ÓL€	Ø�:Š:Ð0°"·(±(Ó;€ã Ø
�-‰-ò Lõ L€à	ô�×&Ò& {Ð4PÓQô ò :Ú /Ú 1ð €
Ø
€Ø	‘c˜* zÕ1Ó2Õ	2±U¸7³^Õ	C€Ø€à&€	Ø€	Ø €	Ø.€	Ù�)˜Y¨	°9Ó=€	Ø(€ÙÐ?Ø)ó+Ù-2°8«_õ=€
à (Õ*€Ù�J Ó)€ÙÐ+¨[¸7Õ-BÓC€
Ù	ˆz˜;¨	Ó	2€òð ×Ññ(ó ð(ñ
 Ñ*Ó,Ò-€ð 
$€à	#€à
2€à
2€Ù	ˆ|˜eÕ# \°EÕ%9Ó	:€á	ˆ|Ð=Õ=ØÐ=Õ=ó
?€ñ ‘�R—Y‘Y¡Ð'8À$Ô GÓHÒ
I€Ùˆh˜Ó €á�6˜5 &¨$Ó/€
Ø�Õ€ñ �Ð=Õ=Ù�c˜:Ó&õ'àÐ=Õ=Ù�c˜:Ó&õ'ó(€ñ �] G¨VÓ4€Ø™5 ¨v°u¸gÀtÓLÕL€ð
 €Ù#×%€GØ#€GˆG�c�MÑØ#€GˆG�c�MÑØ&€GˆG�e�OÑØ&€GˆG�e�OÓñ	 &ð
 ñ “€Ù“€Ù	×	€AØ�#�g�q˜3•wÔˆØ×Ñ˜!Öñ  à�%�i˜˜U�Ô#ˆØ×Ñ˜!Öó $ñ 
 ð
 €qà
€ä !�Ô !÷^$ñ ^$òBò*	ò`$òFò_ò8Jòð2
 Eð 
°ô 
ô08òtô>ð  ˆzÔÙ	†Gñ r   