Skip to content

Commit e4801e9

Browse files
committed
Drop the run order for fix_open
Because of the way the pattern has to be structured it is unnecessary.
1 parent 79f1a37 commit e4801e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libmodernize/fixes/fix_open.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66

77
class FixOpen(fixer_base.BaseFix):
88

9-
run_order = 10 # Run after fix_file.
109
BM_compatible = True
1110
# Fixers don't directly stack, so make sure the 'file' case is covered.
1211
PATTERN = """
1312
power< ('open' | 'file') trailer< '(' any+ ')' > >
1413
"""
1514

1615
def transform(self, node, results):
17-
touch_import(u'io', u'open', node)
18-
16+
libmodernize.touch_import(u'io', u'open', node)

0 commit comments

Comments
 (0)