]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_future.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / lib2to3 / fixes / fix_future.py
CommitLineData
4710c53d 1"""Remove __future__ imports\r
2\r
3from __future__ import foo is replaced with an empty line.\r
4"""\r
5# Author: Christian Heimes\r
6\r
7# Local imports\r
8from .. import fixer_base\r
9from ..fixer_util import BlankLine\r
10\r
11class FixFuture(fixer_base.BaseFix):\r
12 BM_compatible = True\r
13\r
14 PATTERN = """import_from< 'from' module_name="__future__" 'import' any >"""\r
15\r
16 # This should be run last -- some things check for the import\r
17 run_order = 10\r
18\r
19 def transform(self, node, results):\r
20 new = BlankLine()\r
21 new.prefix = node.prefix\r
22 return new\r