We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31bc04b commit c394c46Copy full SHA for c394c46
gazelle/python/parse.py
@@ -27,7 +27,7 @@
27
28
def parse_import_statements(content, filepath):
29
modules = list()
30
- tree = ast.parse(content)
+ tree = ast.parse(content, filename=filepath)
31
for node in ast.walk(tree):
32
if isinstance(node, ast.Import):
33
for subnode in node.names:
0 commit comments