File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
Release History
3
3
---------------
4
4
5
+ 2.2.2
6
+ - AST parsing failures will now report tracebacks with a proper filename for
7
+ the parsed frame, instead of `<unknown> `.
8
+
5
9
2.2.1
6
10
- Python source is now always read using utf-8, even if default encoding for
7
11
reading files is set otherwise.
Original file line number Diff line number Diff line change 1
- __version__ = '2.2.1 '
1
+ __version__ = '2.2.2 '
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def find_imported_modules(options):
122
122
with open (filename , encoding = 'utf-8' ) as f :
123
123
content = f .read ()
124
124
vis .set_location (filename )
125
- vis .visit (ast .parse (content ))
125
+ vis .visit (ast .parse (content , filename ))
126
126
return vis .finalise ()
127
127
128
128
You can’t perform that action at this time.
0 commit comments