§ \�dßãóš—dZddlZddlZd„ejD¦«Zgd¢ZdZdZd„Zd„Z d „Z dd „Z Gd „d¦«Z Gd„d¦«Z dS)aAUtilities to compile possibly incomplete Python source code. This module provides two interfaces, broadly similar to the builtin function compile(), which take program text, a filename and a 'mode' and: - Return code object if the command is complete and valid - Return None if the command is incomplete - Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals). The two interfaces are: compile_command(source, filename, symbol): Compiles a single command in the manner described above. CommandCompiler(): Instances of this class have __call__ methods identical in signature to compile_command; the difference is that if the instance compiles program text containing a __future__ statement, the instance 'remembers' and compiles all subsequent program texts with the statement in force. The module also provides another class: Compile(): Instances of this class act like the built-in function compile, but with 'memory' in the sense described above. éNcó8—g|]}tt|¦«‘ŒS©)ÚgetattrÚ __future__)Ú.0Úfnames ú..\python\lib\codeop.pyú r &s2€ð 8ð 8ð 8Øõ•Z Ñ 'Ô 'ð 8ð 8ð 8ó)Úcompile_commandÚCompileÚCommandCompilerii@có,—| d¦«D]&}| ¦«}|r|ddkrn Œ'|dkrd}tj¦«5tjdt t f¦« ||||¦«ni#t$r\ ||dz||¦«Yddd¦«dS#t$r-}dt|¦«vrYd}~Yddd¦«dSYd}~nd}~wwxYwYnwxYwddd¦«n #1swxYwY||||¦«S)Nú rú#ÚevalÚpassÚignorezincomplete input) ÚsplitÚstripÚwarningsÚcatch_warningsÚ simplefilterÚ SyntaxWarningÚDeprecationWarningÚ SyntaxErrorÚstr)ÚcompilerÚsourceÚfilenameÚsymbolÚlineÚes r Ú_maybe_compiler$1sä€à— ’ ˜TÑ"Ô"ððˆØ�zŠz‰|Œ|ˆØ ð �D˜”G˜s’N�NØ ˆEøà �VÒ Ð ØˆFõ Ô Ñ "Ô "ð  ð  ÝÔ˜h­Õ8JÐ(KÑLÔLÐLð Ø ˆH�V˜X vÑ .Ô .Ð .Ð .øÝð ð ð ð Ø�˜ $™¨°&Ñ9Ô9Ð9Øð  ð  ð  ñ  ô  ð  ð  ð  øõð ð ð Ø%­¨Q©¬Ð/Ð/ؘ4˜4˜4˜4ð  ð  ð  ñ  ô  ð  ð  ð  ð0Ð/Ð/Ð/Ð/øøøøð øøøØ/Ð/ð  øøøð  ð  ð  ñ  ô  ð  ð  ð  ð  ð  ð  øøøð  ð  ð  ð  ð ˆ8�F˜H fÑ -Ô -Ð-slÁ"C>Á; B ÂC> C/ÂB2Â$C>Â2 C)Â<C$à C/ÃC>ÃC/Ã$C)Ã)C/Ã,C>Ã.C/Ã/C>Ã>DÄDcóf—t|¦«}t|¦«}d|vrd|vrdS||krdSdS)Nzwas never closedFT)Úrepr)Úerr1Úerr2Úrep1Úrep2s r Ú_is_syntax_errorr+LsF€Ý �‰:Œ:€DÝ �‰:Œ:€DؘTÐ!Ð!Ð&8¸DÐ&@Ð&@؈uØ ˆt‚|€|؈tØ ˆ5r có@—t|||ttz¦«S©N)ÚcompileÚPyCF_DONT_IMPLY_DEDENTÚPyCF_ALLOW_INCOMPLETE_INPUT©rr r!s r Ú_compiler2Us€Ý �6˜8 VÕ-CÕFaÑ-aÑ bÔ bÐbr úÚsinglecó0—tt|||¦«S)a‰Compile a command and determine whether it is incomplete. Arguments: source -- the source string; may contain \n characters filename -- optional filename from which source was read; default "" symbol -- optional grammar start symbol; "single" (default), "exec" or "eval" Return value / exceptions raised: - Return a code object if the command is complete and valid - Return None if the command is incomplete - Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals). )r$r2r1s r r r Xs€õ& �( F¨H°fÑ =Ô =Ð=r có—eZdZdZd„Zd„ZdS)r zëInstances of this class behave much like the built-in compile function, but if one is used to compile text containing a future statement, it "remembers" and compiles all subsequent program texts with the statement in force.có.—ttz|_dSr-)r/r0Úflags©Úselfs r Ú__init__zCompile.__init__rs€Ý+Õ.IÑIˆŒ ˆ ˆ r có’—t||||jd¦«}tD]&}|j|jzr|xj|jzc_Œ'|S)NT)r.r8Ú _featuresÚco_flagsÚ compiler_flag)r:rr r!ÚcodeobÚfeatures r Ú__call__zCompile.__call__usS€Ý˜ ¨6°4´:¸tÑDÔDˆÝ ð 4ð 4ˆGØŒ Ô!6Ñ6ð 4Ø� ” ˜gÔ3Ñ3� ” øØˆ r N©Ú__name__Ú __module__Ú __qualname__Ú__doc__r;rBrr r r r ms?€€€€€ð$ð$ðJðJðJðððððr r có —eZdZdZd„Zdd„ZdS)ra(Instances of this class have __call__ methods identical in signature to compile_command; the difference is that if the instance compiles program text containing a __future__ statement, the instance 'remembers' and compiles all subsequent program texts with the statement in force.có,—t¦«|_dSr-)r rr9s r r;zCommandCompiler.__init__ƒs€Ý™ œ ˆŒ ˆ ˆ r r3r4có0—t|j|||¦«S)aµCompile a command and determine whether it is incomplete. Arguments: source -- the source string; may contain \n characters filename -- optional filename from which source was read; default "" symbol -- optional grammar start symbol; "single" (default) or "eval" Return value / exceptions raised: - Return a code object if the command is complete and valid - Return None if the command is incomplete - Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals). )r$r)r:rr r!s r rBzCommandCompiler.__call__†s€õ&˜dœm¨V°X¸vÑFÔFÐFr N©r3r4rCrr r rr|sG€€€€€ð$ð$ð "ð"ð"ðGðGðGðGðGðGr rrK)rGrrÚall_feature_namesr=Ú__all__r/r0r$r+r2r r rrr r úrNs ðð ð ðDÐÐÐØ€€€ð 8ð 8Ø$Ô6ð 8ñ 8ô 8€ ð <Ð ;Ð ;€ð ÐØ$Ðð.ð.ð.ð6ðððcðcðcð>ð>ð>ð>ð* ð ð ð ð ñ ô ð ðGðGðGðGðGñGôGðGðGðGr