B U@shddlZddlZddejDZdddgZdZdd Zd d ZdddZGdddZ GdddZ dS)NcCsg|]}tt|qS)getattr __future__).0Zfnamerr)/opt/alt/python37/lib/python3.7/codeop.py >srcompile_commandCompileCommandCompileric CsXx8|dD]}|}|r |ddkr Pq W|dkr:d}d}}}d}} } y||||}Wn"tk r}zWdd}~XYnXttdy||d||} Wn&tk r} z| }Wdd} ~ XYnXy||d||} Wn(tk r} z| }Wdd} ~ XYnXWdQRXz*|r*|S| sFt|t|krF|Wdd}}XdS)N r#evalpassignorez )splitstrip SyntaxErrorwarningscatch_warnings simplefilterrepr) compilersourcefilenamesymbollineerrZerr1Zerr2codecode1code2errr_maybe_compileEs8     r!cCst|||tS)N)compilePyCF_DONT_IMPLY_DEDENT)rrrrrr_compilelsr$singlecCstt|||S)N)r!r$)rrrrrrrosc@seZdZddZddZdS)r cCs t|_dS)N)r#flags)selfrrr__init__szCompile.__init__cCs@t||||jd}x(tD] }|j|j@r|j|jO_qW|S)N)r"r' _featuresco_flagsZ compiler_flag)r(rrrZcodeobZfeaturerrr__call__s   zCompile.__call__N)__name__ __module__ __qualname__r)r-rrrrr sc@seZdZddZdddZdS) r cCs t|_dS)N)r r)r(rrrr)szCommandCompiler.__init__r&cCst|j|||S)N)r!r)r(rrrrrrr-szCommandCompiler.__call__N)r1r&)r.r/r0r)r-rrrrr s)r%r&) rrZall_feature_namesr+__all__r#r!r$rr r rrrr;s  '