From: Terry Jan Reedy Date: Mon, 26 Aug 2024 23:59:14 +0000 (-0400) Subject: [3.12] gh-121804: Backport idlelib.pyshell change (GH-121886) (#123366) X-Git-Tag: v3.12.6~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4deb32a99292a3b1f6b773f6f96f1a8990a19fe0;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-121804: Backport idlelib.pyshell change (GH-121886) (#123366) To aid future backports here. --- diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index d8b2652d5d79..e882c6cb3b8d 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -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