U iÛfÓã@s:dZddlmZddlmZmZmZGdd„dejƒZdS)z•Fixer for exec. This converts usages of the exec statement into calls to a built-in exec() function. exec code in ns1, ns2 -> exec(code, ns1, ns2) é)Ú fixer_base)ÚCommaÚNameÚCallc@seZdZdZdZdd„ZdS)ÚFixExecTzx exec_stmt< 'exec' a=any 'in' b=any [',' c=any] > | exec_stmt< 'exec' (not atom<'(' [any] ')'>) a=any > cCsŠ|st‚|j}|d}| d¡}| d¡}| ¡g}d|d_|dk rZ| tƒ| ¡g¡|dk rv| tƒ| ¡g¡ttdƒ||jdS)NÚaÚbÚcÚéÚexec)Úprefix) ÚAssertionErrorÚsymsÚgetZcloner Úextendrrr)ÚselfZnodeZresultsrrrr Úargs©rú;/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_exec.pyÚ transforms    zFixExec.transformN)Ú__name__Ú __module__Ú __qualname__Z BM_compatibleZPATTERNrrrrrrsrN) Ú__doc__r rZ fixer_utilrrrZBaseFixrrrrrÚs