]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / lib2to3 / fixes / fix_methodattrs.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py
deleted file mode 100644 (file)
index 43b219f..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-"""Fix bound method attributes (method.im_? -> method.__?__).\r
-"""\r
-# Author: Christian Heimes\r
-\r
-# Local imports\r
-from .. import fixer_base\r
-from ..fixer_util import Name\r
-\r
-MAP = {\r
-    "im_func" : "__func__",\r
-    "im_self" : "__self__",\r
-    "im_class" : "__self__.__class__"\r
-    }\r
-\r
-class FixMethodattrs(fixer_base.BaseFix):\r
-    BM_compatible = True\r
-    PATTERN = """\r
-    power< any+ trailer< '.' attr=('im_func' | 'im_self' | 'im_class') > any* >\r
-    """\r
-\r
-    def transform(self, node, results):\r
-        attr = results["attr"][0]\r
-        new = unicode(MAP[attr.value])\r
-        attr.replace(Name(new, prefix=attr.prefix))\r