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 : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/tabnanny.pyo
Size8.14 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:30
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sédZdZddkZddkZddkZddkZeed�ped��ndddgZd a d a
d
�Z d �Z de
fd ��YZd
�Zddd��YZd�Zd�Zedjo e �ndS(s�The Tab Nanny despises ambiguous indentation. She knows no mercy.

tabnanny -- Detection of ambiguous indentation

For the time being this module is intended to be called as a script.
However it is possible to import it into an IDE and use the function
check() described below.

Warning: The API provided by this module is likely to change in future
releases; such changes may not be backward compatible.
t6iÿÿÿÿNtNLs4tokenize.NL doesn't exist -- tokenize module too oldtchecktNannyNagtprocess_tokensicGsKd}x.|D]&}tii|t|��d}q
Wtiid�dS(Ntt s
(tsyststderrtwritetstr(targstseptarg((s /usr/lib64/python2.6/tabnanny.pyterrprint#s 
c
CsØy#titidd�\}}Wn#tij
o}t|�dSXxJ|D]B\}}|djotdan|djotdaqPqPW|ptdtidd�dSx|D]}t|�qÀWdS(Nitqvs-qs-vsUsage:is[-v] file_or_directory ...(tgetoptRtargvterrorRt
filename_onlytverboseR(toptsR tmsgtotaR
((s /usr/lib64/python2.6/tabnanny.pytmain*s"#
 

cBs2eZdZd�Zd�Zd�Zd�ZRS(sg
Raised by tokeneater() if detecting an ambiguous indent.
Captured and handled in check().
cCs!||||_|_|_dS(N(tlinenoRtline(tselfRRR((s /usr/lib64/python2.6/tabnanny.pyt__init__AscCs|iS(N(R(R((s /usr/lib64/python2.6/tabnanny.pyt
get_linenoCscCs|iS(N(R(R((s /usr/lib64/python2.6/tabnanny.pytget_msgEscCs|iS(N(R(R((s /usr/lib64/python2.6/tabnanny.pytget_lineGs(t__name__t
__module__t__doc__RRRR (((s /usr/lib64/python2.6/tabnanny.pyR<s
   c CsOtii|�o·tii|� o£tod|fGHnti|�}xu|D]m}tii||�}tii|�otii|� ptii|d�djot|�qTqTWdSyt |�}Wn*t
j
o}t d||f�dSXtdjo
d|GHnyt t
i|i��Wnöt
ij
o}t d||f�dStj
o}t d ||f�dStj
o�}|i�}|i�}to*d
||fGHd |fGH|i�GHnCd |jod
|d
}nto |GHn|G|Gt|�GHdSXtod|fGHndS(s~check(file_or_dir)

If file_or_dir is a directory and not a symbolic link, then recursively
descend the directory tree named by file_or_dir, checking all .py files
along the way. If file_or_dir is an ordinary Python source file, it is
checked for whitespace related problems. The diagnostic messages are
written to standard output using the print statement.
s%r: listing directoryiýÿÿÿs.pyNs%r: I/O Error: %sischecking %r ...s%r: Token Error: %ss%r: Indentation Error: %ss)%r: *** Line %d: trouble in tab city! ***soffending line: %rRt"s%r: Clean bill of health.(tostpathtisdirtislinkRtlistdirtjointnormcaseRtopentIOErrorRRttokenizetgenerate_tokenstreadlinet
TokenErrortIndentationErrorRRR RRtrepr( tfiletnamestnametfullnametfRtnagtbadlineR((s /usr/lib64/python2.6/tabnanny.pyRJsT
'

   
 t
WhitespacecBsSeZd\ZZd�Zd�Zd�Zd�Zd�Zd�Z d�Z
RS(s c Cs||_titi}}g}d}}}xª|iD]�}||jo|d}|d}q:||jof|d}|d}|t|�jo#|dg|t|�d}n||d||<d}q:Pq:W||_||_t|�|f|_t|�dj|_ dS(Nii(
trawR;tStTtlentntntttupletnormt is_simple( RtwsR=R>tcounttbR@RAtch((s /usr/lib64/python2.6/tabnanny.pyR�s* 





#
  cCs&|i\}}tt|�d|�S(Ni(RCtmaxR?(RRFttrailing((s /usr/lib64/python2.6/tabnanny.pytlongest_run_of_spaces´scCs^|i\}}d}x3t|t|��D]}|||||}q+W||||iS(Ni(RCtrangeR?RA(RttabsizeRFRJtilti((s /usr/lib64/python2.6/tabnanny.pyt indent_level¸s cCs|i|ijS(N(RC(Rtother((s /usr/lib64/python2.6/tabnanny.pytequalÏscCs�t|i�|i��d}g}xftd|d�D]Q}|i|�|i|�jo,|i||i|�|i|�f�q9q9W|S(Ni(RIRKRLRPtappend(RRQR@Rtts((s /usr/lib64/python2.6/tabnanny.pytnot_equal_witnessÖs   cCs¢|i|ijotS|io|io|i|ijSt|i�|i��d}x?td|d�D]*}|i|�|i|�jotSqpWtS(Nii( R@tFalseRDRARIRKRLRPtTrue(RRQR@RT((s /usr/lib64/python2.6/tabnanny.pytlessîs  cCs�t|i�|i��d}g}xftd|d�D]Q}|i|�|i|�jo,|i||i|�|i|�f�q9q9W|S(Ni(RIRKRLRPRS(RRQR@RRT((s /usr/lib64/python2.6/tabnanny.pytnot_less_witnessÿs   ( R!R"R=R>RRKRPRRRURXRY(((s /usr/lib64/python2.6/tabnanny.pyR;�s       cCsNtd�|�}d}t|�djo|d}n|ddi|�S(NcSst|d�S(i(R
(ttup((s /usr/lib64/python2.6/tabnanny.pyt<lambda> ss at tab sizeitsRs, (tmapR?R*(twtfirststprefix((s /usr/lib64/python2.6/tabnanny.pytformat_witnesses
s
cCs�ti}ti}ti}titif}td�g}d}xN|D]F\}}} }
} ||jo
d}qI||jotd}t|�} |di| �p=|di| �}
dt |
�}t
| d|| ��n|i | �qI||jod}|d=qI|ot||jogd}t| �} |di | �p=|di
| �}
dt |
�}t
| d|| ��q�qIqIWdS(NRiiiÿÿÿÿsindent not greater e.g. sindent not equal e.g. (R.tINDENTtDEDENTtNEWLINEtCOMMENTRR;RXRYRaRRSRRRU(ttokensRbRcRdtJUNKtindentst check_equalttypettokentstarttendRtthisguytwitnessR((s /usr/lib64/python2.6/tabnanny.pyRs8   


 
  t__main__((R#t __version__R%RRR.thasattrt
ValueErrort__all__RRRRt ExceptionRRR;RaRR!(((s /usr/lib64/python2.6/tabnanny.pyt<module>
s&       :�  7