gh-121804: Always show error location for SyntaxError's in new repl (#121886)

This commit is contained in:
Sergey B Kirpichev 2024-08-19 17:19:23 +03:00 committed by GitHub
parent e077b201f4
commit 354d55eb1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 36 additions and 10 deletions

View file

@ -706,7 +706,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
del _filename, _sys, _dirname, _dir
\n""".format(filename))
def showsyntaxerror(self, filename=None):
def showsyntaxerror(self, filename=None, **kwargs):
"""Override Interactive Interpreter method: Use Colorizing
Color the offending position instead of printing it and pointing at it