We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e4b58 commit c4405e6Copy full SHA for c4405e6
libmodernize/fixes/__init__.py
@@ -8,7 +8,6 @@
8
'lib2to3.fixes.fix_funcattrs',
9
'lib2to3.fixes.fix_has_key',
10
'lib2to3.fixes.fix_idioms',
11
- 'lib2to3.fixes.fix_import',
12
'lib2to3.fixes.fix_methodattrs',
13
'lib2to3.fixes.fix_ne',
14
'lib2to3.fixes.fix_numliterals',
libmodernize/fixes/fix_import.py
@@ -6,6 +6,10 @@
6
7
class FixImport(fix_import.FixImport):
+ # Make sure this runs before any other fixer to guarantee that any other
+ # added absolute_import doesn't block this fixer's execution.
+ run_order = 1
+
def transform(self, node, results):
results = super(FixImport, self).transform(node, results)
15
if results is None:
0 commit comments