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 9b8c8e4 commit 14211eaCopy full SHA for 14211ea
examples/grinimports.py
@@ -21,7 +21,7 @@ def normalize_From(node):
21
"""
22
statements = []
23
children = node.getChildren()
24
- module = children[0]
+ module = '.'*node.level + node.modname
25
for name, asname in children[1]:
26
line = 'from %s import %s' % (module, name)
27
if asname is not None:
0 commit comments