3 ^ @s~ddlZddlZddlZddlZddlZddlZddlZdddgZGddde Z d ddZ d d dZ e d krzeje dS)NcompilemainPyCompileErrorc@seZdZdddZddZdS)rcCst|j}|tkr2djtj||}|jdd|}n d||f}tj||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.6/py_compile.pyr -s  zPyCompileError.__init__cCs|jS)N)r)rrrr__str__=szPyCompileError.__str__N)r)r __module__ __qualname__r rrrrrrs FcCs|dkr>|dkr2|dkr|nd}tjj||d}n tjj|}tjj|r^d}t|j|n,tjj|rtjj | rd}t|j|tj j d|}|j |}y|j ||p||d} WnVtk r} z8t| j| |p|} |r| ntjj| jd dSWYdd} ~ XnXy tjj|} | r0tj| Wntk rHYnX|j|} tjj| | d | d }tjj|}tjj||||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 ) _optimize mtimesize) importlibutilcache_from_sourceospathislinkFileExistsErrorformatexistsisfile machinerySourceFileLoaderget_datasource_to_coder r __class__sysstderrwriterdirnamemakedirs path_stats_bootstrap_external_code_to_bytecode _calc_mode _write_atomic)rcfiledfiledoraiseoptimizerrloader source_bytescodeerrpy_excr3 source_statsbytecodemoderrrrAsF)         cCs"|dkrtjdd}d}|dgkrxtjj}|s6P|jd}yt|ddWq&tk r}zd}tjjd|j WYdd}~Xq&t k r}zd}tjjd|WYdd}~Xq&Xq&WnZxX|D]P}yt|ddWqtk r}zd}tjjd|j WYdd}~XqXqW|S)Nrr-rT)r<z%s ) r0argvstdinreadlinerstriprrr1r2rOSError)argsrvfilenameerrorrrrrs0    "( (__main__)NNFrQ)N)Zimportlib._bootstrap_externalr!importlib.machineryimportlib.utilr$Zos.pathr0r __all__r rrrrexitrrrrs 0 R &