Skip to content

Commit ff2d804

Browse files
committed
Fix futurize -p and futurize -W.
1 parent 17be3ae commit ff2d804

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libfuturize/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def main(args=None):
141141
"ex: --add-suffix='3' will generate .py3 files.")
142142

143143
# Parse command line arguments
144+
flags = {}
144145
refactor_stdin = False
145146
options, args = parser.parse_args(args)
146147

@@ -207,8 +208,6 @@ def main(args=None):
207208
print("Use --help to show usage.", file=sys.stderr)
208209
return 2
209210

210-
flags = {}
211-
212211
unwanted_fixes = set(fixer_pkg + ".fix_" + fix for fix in options.nofix)
213212

214213
# The 'all-imports' option forces adding all __future__ imports and "from

0 commit comments

Comments
 (0)