home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- '''Remove __future__ imports
-
- from __future__ import foo is replaced with an empty line.
- '''
- from import fixer_base
- from fixer_util import BlankLine
-
- class FixFuture(fixer_base.BaseFix):
- PATTERN = 'import_from< \'from\' module_name="__future__" \'import\' any >'
- run_order = 10
-
- def transform(self, node, results):
- new = BlankLine()
- new.prefix = node.get_prefix()
- return new
-
-
-