Skip to content

Commit 2c3b79d

Browse files
committed
On AST parse error, show the filename in the trace
1 parent d17aa5e commit 2c3b79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pip_check_reqs/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def find_imported_modules(options):
122122
with open(filename, encoding='utf-8') as f:
123123
content = f.read()
124124
vis.set_location(filename)
125-
vis.visit(ast.parse(content))
125+
vis.visit(ast.parse(content, filename))
126126
return vis.finalise()
127127

128128

0 commit comments

Comments
 (0)