Show More
@@ -1202,7 +1202,8 b' class SyntaxTB(ListTB):' | |||
|
1202 | 1202 | # If the source file has been edited, the line in the syntax error can |
|
1203 | 1203 | # be wrong (retrieved from an outdated cache). This replaces it with |
|
1204 | 1204 | # the current value. |
|
1205 |
if isinstance(value |
|
|
1205 | if isinstance(value, SyntaxError) \ | |
|
1206 | and isinstance(value.filename, py3compat.string_types) \ | |
|
1206 | 1207 | and isinstance(value.lineno, int): |
|
1207 | 1208 | linecache.checkcache(value.filename) |
|
1208 | 1209 | newtext = ulinecache.getline(value.filename, value.lineno) |
General Comments 0
You need to be logged in to leave comments.
Login now