选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´i‰Nã @s¾dZddlZddlZddlZddlZddlZddlZddlm Z ddl m Z gd¢Z ddd„Z dddddd œd d „Zdddddd œdd„Zddd„Zdd„Zedkrºeeƒ ƒZe e¡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)Úpartial)ÚPath)Ú compile_dirÚ compile_fileÚ compile_pathccsú|dkrt|tjƒrt |¡}|s0td |¡ƒzt |¡}Wn,tyj|dkrbtd |¡ƒg}Yn0| ¡|D]|}|dkr†qxtj   ||¡}tj   |¡s¨|Vqx|dkrx|tj krx|tj krxtj   |¡rxtj  |¡sxt||d|d�EdHqxdS)NézListing {!r}...zCan't list {!r}Ú __pycache__ré)Ú maxlevelsÚquiet)Ú isinstanceÚosÚPathLikeÚfspathÚprintÚformatÚlistdirÚOSErrorÚsortÚpathÚjoinÚisdirÚcurdirÚpardirÚislinkÚ _walk_dir)Údirr r ÚnamesÚnameÚfullname©r ú"/usr/lib64/python3.9/compileall.pyrs2     ÿ ÿ ÿrFéÿÿÿÿr ©ÚstripdirÚ prependdirÚ limit_sl_destÚhardlink_dupesc CsNd}|dur$| dus| dur$tdƒ‚|dur8|} |} d}|dkrHtdƒ‚|dkrxzddlm}Wntyvd}Yn0|durˆt ¡}t|||d�}d}|dk�r|du�r|p´d}||d ��D}| tt ||||||| | | | | d � |¡}t |dd �}Wdƒn1�s 0Yn2|D],}t |||||||| | | | | d � �sd }�q|S)aÞ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 `sys.getrecursionlimit()`) 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: full output with False or 0, errors only with 1, no output with 2 legacy: if True, produce legacy pyc paths instead of PEP 3147 paths optimize: int or list of optimization levels or -1 for level of the interpreter. Multiple levels leads to multiple compiled files each with one optimization level. workers: maximum number of parallel workers invalidation_mode: how the up-to-dateness of the pyc will be checked stripdir: part of path to left-strip from source file path prependdir: path to prepend to beginning of original file path, applied after stripdir limit_sl_dest: ignore symlinks if they are pointing outside of the defined path hardlink_dupes: hardlink duplicated pyc files NúPDestination dir (ddir) cannot be used in combination with stripdir or prependdirrz%workers must be greater or equal to 0r )ÚProcessPoolExecutor)r r T)Ú max_workers) ÚddirÚforceÚrxr ÚlegacyÚoptimizeÚinvalidation_moder$r%r&r')Údefaultr#F) Ú ValueErrorÚconcurrent.futuresr)Ú ImportErrorÚsysÚgetrecursionlimitrÚmaprrÚmin)rr r+r,r-r r.r/Úworkersr0r$r%r&r'r)ÚfilesÚsuccessÚexecutorÚresultsÚfiler r r!r0sX   ÷ ö . ürc& Cs„|dur |dus| dur tdƒ‚d} |dkrBt|tjƒrBt |¡}tj |¡} d}|durhtj || ¡}|durÆ| tjj ¡}| tjj ¡}t |ƒ}t ||ƒD]\}}||krž|  |¡qžtjj|Ž}| durô|durætj | |¡}ntj | |¡}t|t ƒ�r|g}tt|ƒƒ}| �r.t|ƒdk�r.tdƒ‚|du�rL| |¡}|�rL| S| du�r„tj |¡�r„t| ƒ ¡t|ƒ ¡jv�r„| Si}tj |¡�r€|D]d}|�r²|d||<nJ|dk�rè|dk�rÊ|nd }tjj||d �}|||<ntj |¡}|||<�qš| dd …| d d…}}|d k�r€|�sÈzˆt t |¡jƒ}t d tjjd|d@¡}| ¡D]L}t |dƒ�}| !d¡}Wdƒn1�sŒ0Y||k�r\�q°�q\| WSWnt"�yÆYn0|�sÜt#d $|¡ƒz€t%|ƒD]p\}}||}t&j'|||d||d�} |dk�ræ| �ræ|||d}!t(j)||!dd��ræt *|¡t +|!|¡�qæW�nt&j,�yô}"z|d} |dk�rŽ| WYd}"~"S|�r¤t#d $|¡ƒn t#dd d�t-j.j/�pÀt- 0¡}#|"j1j2|#dd� 3|#¡}$t#|$ƒWYd}"~"n”d}"~"0t4t5t"f�yp}%z^d} |dk�r(| WYd}%~%S|�r>t#d $|¡ƒn t#dd d�t#|%j6j7d|%ƒWYd}%~%nd}%~%00| dk�r€d} | S)aByte-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: full output with False or 0, errors only with 1, no output with 2 legacy: if True, produce legacy pyc paths instead of PEP 3147 paths optimize: int or list of optimization levels or -1 for level of the interpreter. Multiple levels leads to multiple compiled files each with one optimization level. invalidation_mode: how the up-to-dateness of the pyc will be checked stripdir: part of path to left-strip from source file path prependdir: path to prepend to beginning of original file path, applied after stripdir limit_sl_dest: ignore symlinks if they are pointing outside of the defined path. hardlink_dupes: hardlink duplicated pyc files Nr(TrzXHardlinking of duplicated bytecode makes sense only for more than one optimization levelÚcrr Ú)Ú optimizationéýÿÿÿz.pyz<4sLLlÿÿÚrbé zCompiling {!r}...)r/r0F)Úshallowz*** Error compiling {!r}...z*** )ÚendÚbackslashreplace)Úerrorsú:)8r2r r rrrÚbasenamerÚsplitÚsepÚlistÚzipÚremoveÚintÚsortedÚsetÚlenÚsearchrrÚresolveÚparentsÚisfileÚ importlibÚutilÚcache_from_sourceÚstatÚst_mtimeÚstructÚpackÚ MAGIC_NUMBERÚvaluesÚopenÚreadrrrÚ enumerateÚ py_compileÚcompileÚfilecmpÚcmpÚunlinkÚlinkÚPyCompileErrorr5ÚstdoutÚencodingÚgetdefaultencodingÚmsgÚencodeÚdecodeÚ SyntaxErrorÚ UnicodeErrorÚ __class__Ú__name__)&rr+r,r-r r.r/r0r$r%r&r'r;rÚdfileÚfullname_partsÚstripdir_partsÚ ddir_partsÚspartÚopartÚmoÚ opt_cfilesÚ opt_levelÚoptÚcfileÚheadÚtailÚmtimeÚexpectÚchandleÚactualÚindexÚokÚprevious_cfileÚerrrlrnÚer r r!r{s         ÿ     ÿ  *    þ     ( rc CsTd}tjD]D}|r|tjkr2|r2|dkrNtdƒq |oLt||d|||||d�}q |S)a¤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 0) legacy: as for compile_dir() (default False) optimize: as for compile_dir() (default -1) invalidation_mode: as for compiler_dir() TrzSkipping current directoryN)r r.r/r0)r5rr rrr) Ú skip_curdirr r,r r.r/r0r;rr r r!rs   ø rc CsÈddl}|jdd�}|jddddddd �|jd td d d �|jddddd�|jdddddd�|jddddd�|jdddddd�|jd d!d"dd#d�|jd$d%d&dd'd�|jd(d)d*dd+d�|jd,d-d.d/d0�|jd1d2d3d4d5�|jd6d7d8td9d:�d;d<„tjDƒ}|jd=t|ƒd>d?�|jd@dAtdBdCdD�|jdEdFdGdHd0�|jdIddJdKd�| ¡}|j}|j �r„ddl }|  |j ¡|_ |j dLk�r–d|_ |j du�rª|j }n|j}|jdu�rÄdMg|_t|jƒd8k�ræ|j�ræ| dN¡|jdu�r|jdu�s |jdu�r| dO¡|j�r¬z\|jdPk�r0tjnt|jƒ�*}|D]}| | ¡¡�q@Wdƒn1�sl0YWn2t�yª|jdQk�r¤tdR |j¡ƒYdSS0|j �rÒ|j  !dPdT¡ "¡} tj| } nd} dU} z¾|�r~|D]�} t#j$ %| ¡�r4t&| |j|j'|j |j|j(| |j|j|j|j |jdV� �stdS} n@t)| ||j|j'|j |j|j(|j*| |j|j|j|j |jdW��sædS} �qæ| WSt+|j(|j'|j| dX�WSWn*t,�yÂ|jdQk�r¼tdYƒYdSS0dUS)ZzScript main program.rNz1Utilities to support installing Python libraries.)Ú descriptionz-lÚ store_constr z!don't recurse into subdirectories)ÚactionÚconstr1ÚdestÚhelpz-rÚ recursionzhcontrol the maximum recursion level. if `-l` and `-r` options are specified, then `-r` takes precedence.)Útyper�r‘z-fÚ store_truer,z/force rebuild even if timestamps are up to date)rŽr�r‘z-qÚcountr zIoutput only error messages; -qq will suppress the error messages as well.)rŽr�r1r‘z-br.z0use legacy (pre-PEP3147) compiled file locationsz-dÚDESTDIRr+z�directory to prepend to file paths for use in compile-time tracebacks and in runtime tracebacks in cases where the source file is unavailable)Úmetavarr�r1r‘z-sÚSTRIPDIRr$z€part of path to left-strip from path to source file - for example buildroot. `-d` and `-s` options cannot be specified together.z-pÚ PREPENDDIRr%z®path to add as prefix to path to source file - for example / to make it absolute when some part is removed by `-s` option. `-d` and `-p` options cannot be specified together.z-xÚREGEXPr-zskip files matching the regular expression; the regexp is searched for in the full path of each file considered for compilationz-iÚFILEÚflistzzadd all the files and directories listed in FILE to the list considered for compilation; if "-", names are read from stdin)r—r�r‘Ú compile_destzFILE|DIRÚ*zrzero or more file and directory names to compile; if no arguments given, defaults to the equivalent of -l sys.path)r—Únargsr‘z-jz --workersr zRun compileall concurrently)r1r“r‘cSsg|]}|j ¡ dd¡‘qS)Ú_ú-)rÚlowerÚreplace)Ú.0Úmoder r r!Ú gsÿzmain..z--invalidation-modez‡set .pyc invalidation mode; defaults to "checked-hash" if the SOURCE_DATE_EPOCH environment variable is set, and "timestamp" otherwise.)Úchoicesr‘z-oÚappendÚ opt_levelsz‡Optimization levels to run compilation with. Default is -1 which uses the optimization level of the Python interpreter itself (see -O).)rŽr“r�r‘z-eÚDIRr&z+Ignore symlinks pointing outsite of the DIRz--hardlink-dupesr'zHardlink duplicated pyc filesr@r"zYHardlinking of duplicated bytecode makes sense only for more than one optimization level.z.-d cannot be used in combination with -s or -pr¡rzError reading file list {}Fr T)r0r$r%r/r&r')r9r0r$r%r/r&r')r.r,r r0z [interrupted])-ÚargparseÚArgumentParserÚ add_argumentrPrdÚPycInvalidationModerQÚ parse_argsr�r-Úrerer&r’r r©rSr'Úerrorr+r$r%rœr5Ústdinrar¨Ústriprr rrr0r£Úupperr rrWrr,r.rr9rÚKeyboardInterrupt) r«ÚparserÚinvalidation_modesÚargsÚ compile_destsr°r ÚfÚlineÚivl_moder0r;r�r r r!Úmain2sÿ þ ÿ ÿ ÿ ÿ ÿ þ þ ÿ ÿ ÿ ÿÿþ ÿ ÿþ     ÿÿ 6  ù  ø  þ  r½Ú__main__)r) NNFNrFr"r N)NFNrFr"N)r rFrFr"N)Ú__doc__r r5Úimportlib.utilrXrdr]rfÚ functoolsrÚpathlibrÚ__all__rrrrr½rtrPÚ exit_statusÚexitr r r r!ÚsD    þý Kþý þ "