]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_input.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / lib2to3 / fixes / fix_input.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_input.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_input.py
deleted file mode 100644 (file)
index 1b4d2f3..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-"""Fixer that changes input(...) into eval(input(...))."""\r
-# Author: Andre Roberge\r
-\r
-# Local imports\r
-from .. import fixer_base\r
-from ..fixer_util import Call, Name\r
-from .. import patcomp\r
-\r
-\r
-context = patcomp.compile_pattern("power< 'eval' trailer< '(' any ')' > >")\r
-\r
-\r
-class FixInput(fixer_base.BaseFix):\r
-    BM_compatible = True\r
-    PATTERN = """\r
-              power< 'input' args=trailer< '(' [any] ')' > >\r
-              """\r
-\r
-    def transform(self, node, results):\r
-        # If we're already wrapped in a eval() call, we're done.\r
-        if context.match(node.parent.parent):\r
-            return\r
-\r
-        new = node.clone()\r
-        new.prefix = u""\r
-        return Call(Name(u"eval"), [new], prefix=node.prefix)\r