OLD | NEW |
(Empty) | |
| 1 """ |
| 2 UNFINISHED |
| 3 |
| 4 Fixer for turning multiple lines like these: |
| 5 |
| 6 from __future__ import division |
| 7 from __future__ import absolute_import |
| 8 from __future__ import print_function |
| 9 |
| 10 into a single line like this: |
| 11 |
| 12 from __future__ import (absolute_import, division, print_function) |
| 13 |
| 14 This helps with testing of ``futurize``. |
| 15 """ |
| 16 |
| 17 from lib2to3 import fixer_base |
| 18 from libfuturize.fixer_util import future_import |
| 19 |
| 20 class FixOrderFutureImports(fixer_base.BaseFix): |
| 21 BM_compatible = True |
| 22 PATTERN = "file_input" |
| 23 |
| 24 run_order = 10 |
| 25 |
| 26 # def match(self, node): |
| 27 # """ |
| 28 # Match only once per file |
| 29 # """ |
| 30 # if hasattr(node, 'type') and node.type == syms.file_input: |
| 31 # return True |
| 32 # return False |
| 33 |
| 34 def transform(self, node, results): |
| 35 # TODO # write me |
| 36 pass |
| 37 |
OLD | NEW |