summaryrefslogtreecommitdiffstats
path: root/Lib/code.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/code.py')
-rw-r--r--Lib/code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/code.py b/Lib/code.py
index 5f7a2d3..25f5b6a 100644
--- a/Lib/code.py
+++ b/Lib/code.py
@@ -110,7 +110,7 @@ class InteractiveInterpreter:
colorize = kwargs.pop('colorize', False)
try:
typ, value, tb = sys.exc_info()
- if filename and typ is SyntaxError:
+ if filename and issubclass(typ, SyntaxError):
value.filename = filename
source = kwargs.pop('source', "")
self._showtraceback(typ, value, None, colorize, source)