Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
edschofield committed Feb 21, 2024
2 parents 8cd11e8 + 679e2fe commit cd717be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libfuturize/fixer_util.py
Expand Up @@ -390,6 +390,7 @@ def touch_import_top(package, name_to_import, node):
break
insert_pos = idx

children_hooks = []
if package is None:
import_ = Node(syms.import_name, [
Leaf(token.NAME, u"import"),
Expand All @@ -413,8 +414,6 @@ def touch_import_top(package, name_to_import, node):
]
)
children_hooks = [install_hooks, Newline()]
else:
children_hooks = []

# FromImport(package, [Leaf(token.NAME, name_to_import, prefix=u" ")])

Expand Down

0 comments on commit cd717be

Please sign in to comment.