AlkantarClanX12

Your IP : 3.138.101.219


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__/compileall.cpython-33.pyc

�
��f&c	@s�dZddlZddlZddlZddlZddlZddlZdddgZddddddddd�Z
ddddddd	d�Zddddddd
d�Zdd�Z
ed
kr�ee
��Zeje�ndS(u�Module/script to byte-compile all .py files to .pyc (or .pyo) files.

When called as a script with arguments, this compiles the directories
given as arguments recursively; the -l option prevents it from
recursing into directories.

Without arguments, if compiles all modules on sys.path, without
recursing into subdirectories.  (Even though it should do so for
packages -- for now, you'll have to deal with packages separately.)

See module py_compile for details of the actual byte-compilation.
iNucompile_dirucompile_fileucompile_pathi
ic
Cs�|stdj|��nytj|�}Wn.tjk
r_tdj|��g}YnX|j�d}	x|D]}
|
dkr�qwntjj||
�}|dk	r�tjj||
�}nd}tjj	|�s
t
|||||||�s�d}	q�qw|dkrw|
tjkrw|
tjkrwtjj	|�rwtjj
|�rwt||d||||||�s�d}	q�qwqwW|	S(u[Byte-compile all modules in the given directory tree.

    Arguments (only dir is required):

    dir:       the directory to byte-compile
    maxlevels: maximum recursion level (default 10)
    ddir:      the directory that will be prepended to the path to the
               file as it is compiled into each byte-code file.
    force:     if True, force compilation, even if timestamps are up-to-date
    quiet:     if True, be quiet during compilation
    legacy:    if True, produce legacy pyc paths instead of PEP 3147 paths
    optimize:  optimization level or -1 for level of the interpreter
    uListing {!r}...uCan't list {!r}iu__pycache__iN(uprintuformatuosulistdiruerrorusortupathujoinuNoneuisdirucompile_fileucurdirupardiruislinkucompile_dir(
udiru	maxlevelsuddiruforceurxuquietulegacyuoptimizeunamesusuccessunameufullnameudfile((u//opt/alt/python33/lib64/python3.3/compileall.pyucompile_dirs4

*%cCsd}tjj|�}|dk	r<tjj||�}	nd}	|dk	rj|j|�}
|
rj|Sntjj|�r|r�|tr�dnd}nF|dkr�tj	|d|�}ntj	|�}tjj
|�}|dd�|dd�}
}|dkr|s�ynttj|�j
�}tjd	tj�|�}t|d
��}|jd�}WdQX||kr�|SWq�tk
r�Yq�Xn|s�tdj|��ny"tj|||	dd
|�}Wn
tjk
rq}zt|rtdj|��ntddd�|jjtjjdd�}|jtjj�}t|�d}WYdd}~Xqt t!tfk
r�}zN|r�tdj|��ntddd�t|j"j#d|�d}WYdd}~XqX|dkrd}qqn|S(u�Byte-compile one file.

    Arguments (only fullname is required):

    fullname:  the file to byte-compile
    ddir:      if given, the directory name compiled in to the
               byte-code file.
    force:     if True, force compilation, even if timestamps are up-to-date
    quiet:     if True, be quiet during compilation
    legacy:    if True, produce legacy pyc paths instead of PEP 3147 paths
    optimize:  optimization level or -1 for level of the interpreter
    iucuoiudebug_overrideNiu.pyu<4slurbiuCompiling {!r}...uoptimizeu*** Error compiling {!r}...u*** uenduuerrorsubackslashreplaceu:i����i����T($uosupathubasenameuNoneujoinusearchuisfileu	__debug__uimpucache_from_sourceudirnameuintustatust_mtimeustructupacku	get_magicuopenureaduIOErroruprintuformatu
py_compileucompileuTrueuPyCompileErrorumsguencodeusysustdoutuencodingudecodeuSyntaxErroruUnicodeErroru	__class__u__name__(ufullnameuddiruforceurxuquietulegacyuoptimizeusuccessunameudfileumoucfileu	cache_diruheadutailumtimeuexpectuchandleuactualuokuerrumsgue((u//opt/alt/python33/lib64/python3.3/compileall.pyucompile_fileAsh
!

	
cCstd}xgtjD]\}|s,|tjkr?|r?td�q|oit||d|d|d|d|�}qW|S(u{Byte-compile all module on sys.path.

    Arguments (all optional):

    skip_curdir: if true, skip current directory (default True)
    maxlevels:   max recursion level (default 0)
    force: as for compile_dir() (default False)
    quiet: as for compile_dir() (default False)
    legacy: as for compile_dir() (default False)
    optimize: as for compile_dir() (default -1)
    iuSkipping current directoryuquietulegacyuoptimizeN(usysupathuosucurdiruprintucompile_diruNone(uskip_curdiru	maxlevelsuforceuquietulegacyuoptimizeusuccessudir((u//opt/alt/python33/lib64/python3.3/compileall.pyucompile_path�s

c	Cs4ddl}|jdd�}|jdddddd	d
ddd
d�|jdddddd
d�|jdddddd
d�|jdddddd
d�|jdddddd	dd
d�|jddddd d	dd
d!�|jd"dd#dd$d
d%�|jd&dd'd(d)d
d*�|j�}|j}|jr�t|�d+ksutj	j
|d�r�|jd,�n|jr�ddl
}|j|j�|_n|jrEyX|jd-kr�tjnt|j��+}x!|D]}|j|j��q�WWdQXWqEtk
rAtd.j|j��d0SYqEXnd1}y�|r�x�|D]�}tj	j|�r�t||j|j|j|j|j�s�d0}q�q[t||j |j|j|j|j|j�s[d0}q[q[W|St!d|jd|jd|j�SWn t"k
r/td/�d0SYnXd1S(2uScript main program.iNudescriptionu1Utilities to support installing Python libraries.u-luactionustore_constuconstudefaulti
udestu	maxlevelsuhelpu!don't recurse into subdirectoriesu-fu
store_trueuforceu/force rebuild even if timestamps are up to dateu-ququietuoutput only error messagesu-bulegacyu0use legacy (pre-PEP3147) compiled file locationsu-dumetavaruDESTDIRuddiru�directory to prepend to file paths for use in compile-time tracebacks and in runtime tracebacks in cases where the source file is unavailableu-xuREGEXPurxuskip files matching the regular expression; the regexp is searched for in the full path of each file considered for compilationu-iuFILEuflistuzadd all the files and directories listed in FILE to the list considered for compilation; if "-", names are read from stdinucompile_destuFILE|DIRunargsu*urzero or more file and directory names to compile; if no arguments given, defaults to the equivalent of -l sys.pathiu2-d destdir requires exactly one directory argumentu-uError reading file list {}u
[interrupted]FT(#uargparseuArgumentParseruadd_argumentuNoneu
parse_argsucompile_destuddirulenuosupathuisdiruexiturxureucompileuflistusysustdinuopenuappendustripuEnvironmentErroruprintuformatuFalseuTrueuisfileucompile_fileuforceuquietulegacyucompile_diru	maxlevelsucompile_pathuKeyboardInterrupt(	uargparseuparseruargsu
compile_destsureufulineusuccessudest((u//opt/alt/python33/lib64/python3.3/compileall.pyumain�sn					*
!




	umainu__main__Fi����i����i����(u__doc__uosusysuerrnouimpu
py_compileustructu__all__uNoneuFalseucompile_dirucompile_fileucompile_pathumainu__name__uintuexit_statusuexit(((u//opt/alt/python33/lib64/python3.3/compileall.pyu<module>s"*IL