HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.5/__pycache__/tabnanny.cpython-35.pyc


Fa,@sdZdZddlZddlZddlZddlZeedsWeddddgZda	da
d	d
ZddZGd
dde
ZddZGdddZddZddZedkredS)aThe 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.
6NNLz4tokenize.NL doesn't exist -- tokenize module too oldcheckNannyNagprocess_tokenscGsKd}x.|D]&}tjj|t|d}q
WtjjddS)N 
)sysstderrwritestr)argssepargr/usr/lib/python3.5/tabnanny.pyerrprint#s


rcCsy)tjtjddd\}}Wn6tjk
ra}zt|dSWYdd}~XnXx@|D]8\}}|dkrtda|dkritdaqiW|stdtjdddSx|D]}t|qWdS)NZqvz-qz-vzUsage:rz[-v] file_or_directory ...)getoptr
argverrorr
filename_onlyverboser)Zoptsrmsgoarrrrmain*s)


rc@sFeZdZdZddZddZddZdd	Zd
S)rzg
    Raised by tokeneater() if detecting an ambiguous indent.
    Captured and handled in check().
    cCs!||||_|_|_dS)N)linenorline)selfrrrrrr__init__AszNannyNag.__init__cCs|jS)N)r)r rrr
get_linenoCszNannyNag.get_linenocCs|jS)N)r)r rrrget_msgEszNannyNag.get_msgcCs|jS)N)r)r rrrget_lineGszNannyNag.get_lineN)__name__
__module____qualname____doc__r!r"r#r$rrrrr<s
c	%Cstjj|rtjj|rtr<td|ftj|}xt|D]l}tjj||}tjj|rtjj|stjj|dddkrRt	|qRWdSyt
j|}Wn=tk
r}zt
d||fdSWYdd}~XnXtdkr3td|z^ytt
j|jWn=t
jk
r}zt
d||fdSWYdd}~Xntk
r}zt
d	||fdSWYdd}~Xntk
r}z|j}|j}tr6td
||ftd|ft|jnCd|krPd
|d
}trct|nt||t|dSWYdd}~XnXWd|jXtrtd|fdS)a~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.
    z%r: listing directoryNz.pyz%r: I/O Error: %srzchecking %r ...z%r: Token Error: %sz%r: Indentation Error: %sz)%r: *** Line %d: trouble in tab city! ***zoffending line: %rr"z%r: Clean bill of health.)ospathisdirislinkrprintlistdirjoinnormcasertokenizeopenOSErrorrrgenerate_tokensreadline
TokenErrorIndentationErrorrr"r$r#rreprclose)	filenamesnamefullnamefrZnagbadlinerrrrrJsT
%
"
c@speZdZd\ZZddZddZddZdd	Zd
dZ	dd
Z
ddZdS)
Whitespacez 	c	Cs||_tjtj}}g}d}}}x|jD]}||krc|d}|d}q:||kr|d}|d}|t|kr|dg|t|d}||d||<d}q:Pq:W||_||_t||f|_t|dk|_	dS)Nrr)
rawrCSTlennnttuplenorm	is_simple)	r ZwsrErFcountbrHrIZchrrrr!s(	



			zWhitespace.__init__cCs&|j\}}tt|d|S)Nr)rKmaxrG)r rMtrailingrrrlongest_run_of_spacessz Whitespace.longest_run_of_spacescCs^|j\}}d}x3t|t|D]}|||||}q+W||||jS)Nr)rKrangerGrI)r tabsizerMrPZilirrrindent_levels
zWhitespace.indent_levelcCs|j|jkS)N)rK)r otherrrrequalszWhitespace.equalcCst|j|jd}g}xatd|dD]L}|j||j|kr9|j||j||j|fq9W|S)Nr)rOrQrRrUappend)r rVrHrtsrrrnot_equal_witnesss	zWhitespace.not_equal_witnesscCs|j|jkrdS|jr8|jr8|j|jkSt|j|jd}x=td|dD](}|j||j|krkdSqkWdS)NFrT)rHrLrIrOrQrRrU)r rVrHrYrrrlessszWhitespace.lesscCst|j|jd}g}xatd|dD]L}|j||j|kr9|j||j||j|fq9W|S)Nr)rOrQrRrUrX)r rVrHrrYrrrnot_less_witnesss	zWhitespace.not_less_witnessN)r%r&r'rErFr!rQrUrWrZr\r]rrrrrCsrCcCsJdd|D}d}t|dkr5|d}|ddj|S)Ncss|]}t|dVqdS)rN)r
).0tuprrr	<genexpr>sz#format_witnesses.<locals>.<genexpr>zat tab sizersrz, )rGr2)wZfirstsprefixrrrformat_witnesses
s

rdcCstj}tj}tj}tjtjf}tdg}d}x8|D]0\}}}	}
}||krsd}qI||krd}t|}|dj|s|dj|}
dt	|
}t
|	d|||j|qI||kr	d}|d=qI|rI||krId}t|}|d	j|sI|d
j
|}
dt	|
}t
|	d||qIWdS)Nrrrzindent not greater e.g. zindent not equal e.g. rererere)r4INDENTDEDENTNEWLINECOMMENTrrCr\r]rdrrXrWrZ)tokensrfrgrhZJUNKindentsZcheck_equaltypetokenstartendrZthisguyZwitnessrrrrrs6				

__main__)r(__version__r,r
rr4hasattr
ValueError__all__rrrr	ExceptionrrrCrdrr%rrrr<module>
s&=7