%PDF- %PDF-
Direktori : /usr/local/lib/python3.8/__pycache__/ |
Current File : //usr/local/lib/python3.8/__pycache__/compileall.cpython-38.pyc |
U nan5 @ s d Z ddlZddlZddlZddlZddlZddlmZ dddgZ ddd Z dd dZdd ZdddZ dddZdd Zedkree Zee dS )a Module/script to byte-compile all .py files to .pyc 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. N)partialcompile_dircompile_filecompile_path c c s |dk rt | tjrt| } |s0td| zt| }W n. tk rl |dk rdtd| g }Y nX | |D ]}|dkrqztj | |}|d k rtj ||}nd }tj |s||fV qz|dkrz|tjkrz|tj krztj |rztj |szt|||d |dE d H qzd S )N zListing {!r}...zCan't list {!r}__pycache__r )ddir maxlevelsquiet) isinstanceosPathLikefspathprintformatlistdirOSErrorsortpathjoinisdircurdirpardirislink _walk_dir)dirr r r namesnamefullnamedfile r"