Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: third_party/google-endpoints/libfuturize/fixes/fix_order___future__imports.py

Issue 2666783008: Add google-endpoints to third_party/. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698