]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-121804: Backport idlelib.pyshell change (GH-121886) (#123366)
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 26 Aug 2024 23:59:14 +0000 (19:59 -0400)
committerGitHub <noreply@github.com>
Mon, 26 Aug 2024 23:59:14 +0000 (19:59 -0400)
To aid future backports here.

Lib/idlelib/pyshell.py

index d8b2652d5d7979c26069c75eee29b6fee3a7bfe5..e882c6cb3b8d19cdfa4491fe9fc0938dc7d2a186 100755 (executable)
@@ -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