]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_repr.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / lib2to3 / fixes / fix_repr.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_repr.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_repr.py
deleted file mode 100644 (file)
index fafed4a..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright 2006 Google, Inc. All Rights Reserved.\r
-# Licensed to PSF under a Contributor Agreement.\r
-\r
-"""Fixer that transforms `xyzzy` into repr(xyzzy)."""\r
-\r
-# Local imports\r
-from .. import fixer_base\r
-from ..fixer_util import Call, Name, parenthesize\r
-\r
-\r
-class FixRepr(fixer_base.BaseFix):\r
-\r
-    BM_compatible = True\r
-    PATTERN = """\r
-              atom < '`' expr=any '`' >\r
-              """\r
-\r
-    def transform(self, node, results):\r
-        expr = results["expr"].clone()\r
-\r
-        if expr.type == self.syms.testlist1:\r
-            expr = parenthesize(expr)\r
-        return Call(Name(u"repr"), [expr], prefix=node.prefix)\r