PATH: //lib64/python3.9/lib2to3/fixes
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 fix_apply.py
↓
X
📄 fix_asserts.py
↓
X
📄 fix_basestring.py
↓
X
📄 fix_buffer.py
↓
X
📄 fix_dict.py
↓
X
📄 fix_except.py
↓
X
📄 fix_exec.py
↓
X
📄 fix_execfile.py
↓
X
📄 fix_exitfunc.py
↓
X
📄 fix_filter.py
↓
X
📄 fix_funcattrs.py
↓
X
📄 fix_future.py
↓
X
📄 fix_getcwdu.py
↓
X
📄 fix_has_key.py
↓
X
📄 fix_idioms.py
↓
X
📄 fix_import.py
↓
X
📄 fix_imports.py
↓
X
📄 fix_imports2.py
↓
X
📄 fix_input.py
↓
X
📄 fix_intern.py
↓
X
📄 fix_isinstance.py
↓
X
📄 fix_itertools.py
↓
X
📄 fix_itertools_imports.py
↓
X
📄 fix_long.py
↓
X
📄 fix_map.py
↓
X
📄 fix_metaclass.py
↓
X
📄 fix_methodattrs.py
↓
X
📄 fix_ne.py
↓
X
📄 fix_next.py
↓
X
📄 fix_nonzero.py
↓
X
📄 fix_numliterals.py
↓
X
📄 fix_operator.py
↓
X
📄 fix_paren.py
↓
X
📄 fix_print.py
↓
X
📄 fix_raise.py
↓
X
📄 fix_raw_input.py
↓
X
📄 fix_reduce.py
↓
X
📄 fix_reload.py
↓
X
📄 fix_renames.py
↓
X
📄 fix_repr.py
↓
X
📄 fix_set_literal.py
↓
X
📄 fix_standarderror.py
↓
X
📄 fix_sys_exc.py
↓
X
📄 fix_throw.py
↓
X
📄 fix_tuple_params.py
↓
X
📄 fix_types.py
↓
X
📄 fix_unicode.py
↓
X
📄 fix_urllib.py
↓
X
📄 fix_ws_comma.py
↓
X
📄 fix_xrange.py
↓
X
📄 fix_xreadlines.py
↓
X
📄 fix_zip.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: fix_exec.py
# Copyright 2006 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """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) """ # Local imports from .. import fixer_base from ..fixer_util import Comma, Name, Call class FixExec(fixer_base.BaseFix): BM_compatible = True PATTERN = """ exec_stmt< 'exec' a=any 'in' b=any [',' c=any] > | exec_stmt< 'exec' (not atom<'(' [any] ')'>) a=any > """ def transform(self, node, results): assert results syms = self.syms a = results["a"] b = results.get("b") c = results.get("c") args = [a.clone()] args[0].prefix = "" if b is not None: args.extend([Comma(), b.clone()]) if c is not None: args.extend([Comma(), c.clone()]) return Call(Name("exec"), args, prefix=node.prefix)
SIMPAN PERUBAHAN