shell bypass 403
l
��bc @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d d g Z d d d
d d
d
d d � Z
d d
d d
d
d d � Z d d d
d
d
d d
� Z d � Z
e d k r� e e
� � Z e j e � n d S( 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.
i Nu compile_diru compile_fileu compile_pathi
i c
C s� | s t d j | � � n y t j | � } Wn. t j k
r_ t d j | � � g } Yn X| j � d } x| D]}
|
d k r� qw n t j j | |
� } | d k r� t j j | |
� } n d } t j j | � s
t
| | | | | | | � s�d } q�qw | d k rw |
t j k rw |
t j k rw t j j | � rw t j j
| � rw t | | d | | | | | | � s�d } q�qw qw W| 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
u Listing {!r}...u Can't list {!r}i u __pycache__i N( u printu formatu osu listdiru erroru sortu pathu joinu Noneu isdiru compile_fileu curdiru pardiru islinku compile_dir(
u diru maxlevelsu ddiru forceu rxu quietu legacyu optimizeu namesu successu nameu fullnameu dfile( ( u1 /usr/local/python-3.2/lib/python3.2/compileall.pyu compile_dir s4
*%c C s d } t j j | � } | d k r<