[3.13] gh-122546: use same filename for different exceptions in new repl (GH-123217) (#123226)

This commit is contained in:
Sergey B Kirpichev 2024-08-23 02:28:09 +03:00 committed by GitHub
parent 5148e03f0f
commit 5271f8fead
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 11 deletions

View file

@ -162,7 +162,7 @@ class InteractiveColoredConsole(code.InteractiveConsole):
self.can_colorize = _colorize.can_colorize()
def showsyntaxerror(self, filename=None, **kwargs):
super().showsyntaxerror(colorize=self.can_colorize, **kwargs)
super().showsyntaxerror(filename=filename, **kwargs)
def showtraceback(self):
super().showtraceback(colorize=self.can_colorize)