]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_nonzero.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / lib2to3 / fixes / fix_nonzero.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_nonzero.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_nonzero.py
deleted file mode 100644 (file)
index 490993b..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-"""Fixer for __nonzero__ -> __bool__ methods."""\r
-# Author: Collin Winter\r
-\r
-# Local imports\r
-from .. import fixer_base\r
-from ..fixer_util import Name, syms\r
-\r
-class FixNonzero(fixer_base.BaseFix):\r
-    BM_compatible = True\r
-    PATTERN = """\r
-    classdef< 'class' any+ ':'\r
-              suite< any*\r
-                     funcdef< 'def' name='__nonzero__'\r
-                              parameters< '(' NAME ')' > any+ >\r
-                     any* > >\r
-    """\r
-\r
-    def transform(self, node, results):\r
-        name = results["name"]\r
-        new = Name(u"__bool__", prefix=name.prefix)\r
-        name.replace(new)\r