summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl
diff options
context:
space:
mode:
authorSergey B Kirpichev <skirpichev@gmail.com>2024-08-22 11:55:30 (GMT)
committerGitHub <noreply@github.com>2024-08-22 11:55:30 (GMT)
commit3d7b1a526d858496add5b188c790b8d5fe73b06b (patch)
treec990713e27b5edba168bfb032b4294a625401c3a /Lib/_pyrepl
parent427b106162c7467de8a84476a053dfba9ef16dfa (diff)
downloadcpython-3d7b1a526d858496add5b188c790b8d5fe73b06b.zip
cpython-3d7b1a526d858496add5b188c790b8d5fe73b06b.tar.gz
cpython-3d7b1a526d858496add5b188c790b8d5fe73b06b.tar.bz2
gh-122546: use same filename for different exceptions in new repl (#123217)
* gh-122546: use same filename for different exceptions in new repl * +1
Diffstat (limited to 'Lib/_pyrepl')
-rw-r--r--Lib/_pyrepl/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_pyrepl/console.py b/Lib/_pyrepl/console.py
index 330ebbd..3e72a56 100644
--- a/Lib/_pyrepl/console.py
+++ b/Lib/_pyrepl/console.py
@@ -162,7 +162,7 @@ class InteractiveColoredConsole(code.InteractiveConsole):
self.can_colorize = _colorize.can_colorize()
def showsyntaxerror(self, filename=None, **kwargs):
- super().showsyntaxerror(**kwargs)
+ super().showsyntaxerror(filename=filename, **kwargs)
def _excepthook(self, typ, value, tb):
import traceback