U &.e @sddlZddlZddlZddlZddlZddlZddlZddlZddddgZ Gddde Z Gdddej Z dd Zdd dZdd dZedkreedS)NcompilemainPyCompileErrorPycInvalidationModec@seZdZdddZddZdS)rcCst|j}|tkr2dt||}|dd|}n d||f}t||pJ||||||_||_ ||_ |pl||_ dS)NrzFile ""z File "%s"z Sorry: %s: %s) __name__ SyntaxErrorjoin tracebackformat_exception_onlyreplace Exception__init__ exc_type_name exc_valuefilemsg)selfexc_typerrrrtbtexterrmsgr"/usr/lib64/python3.8/py_compile.pyr.s zPyCompileError.__init__cCs|jS)N)r)rrrr__str__>szPyCompileError.__str__N)r)r __module__ __qualname__rrrrrrrs c@seZdZdZdZdZdS)rN)rrr TIMESTAMP CHECKED_HASHUNCHECKED_HASHrrrrrBscCs(tjdrtjdstjStjSdS)NSOURCE_DATE_EPOCHRPM_BUILD_ROOT)osenvirongetrr rrrrr_get_default_invalidation_modeHs   r'Fc Cs|dkrt}|dkrL|dkr@|dkr*|nd}tjj||d}n tj|}tj|rld}t||n*tj |rtj |sd}t||tj d|} | |} z| j| |p||d} Wndtk r*} zDt| j| |p|} |d kr|r| ntj| jd WYdSd} ~ XYnXz tj|}|rJt|Wntk rbYnX|tjkr| |}tj| |d |d }n"tj| }tj| ||tjk}tj |}tj!||||S) Nrrr) optimizationzc{} is a symlink and will be changed into a regular file if import writes a byte-compiled file to itzk{} is a non-regular file and will be changed into a regular one if import writes a byte-compiled file to itz ) _optimizer mtimesize)"r' importlibutilcache_from_sourcer$pathislinkFileExistsErrorformatexistsisfile machinerySourceFileLoaderget_datasource_to_coder r __class__sysstderrwriterdirnamemakedirsrr path_stats_bootstrap_external_code_to_timestamp_pyc source_hash_code_to_hash_pycr _calc_mode _write_atomic)rcfiledfiledoraiseoptimizeinvalidation_modequietr)rloader source_bytescodeerrpy_excr? source_statsbytecoderDmoderrrrPsd-           c Cs|dkrtjdd}d}|dgkrtj}|s4q|d}zt|ddWq$tk r}zd}tjd|j W5d}~XYq$t k r}zd}tjd|W5d}~XYq$Xq$nV|D]P}zt|ddWqtk r}zd}tjd|j W5d}~XYqXq|S)Nrr-r+T)rJz%s ) r<argvstdinreadlinerstriprrr=r>rOSError)argsrvfilenameerrorrrrrs.    "&&__main__)NNFr(Nr)N)enumZimportlib._bootstrap_externalr.importlib.machineryimportlib.utilr$Zos.pathr<r __all__r rEnumrr'rrrexitrrrrs$ 0 a &