Skip to content

Commit 4f212e1

Browse files
authored
Fix Pythonwin displaying syntax errors in Python 3.13 (#2393) (#2394)
1 parent 6125a61 commit 4f212e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ https://mhammond.github.io/pywin32_installers.html.
1414
Coming in build 308, as yet unreleased
1515
--------------------------------------
1616

17+
* Fix Pythonwin displaying syntax errors in Python 3.13 (#2393)
1718
* Allowed installs from source w/o having pywin32 pre-installed (for instance, from GitHub) (#2349, @Avasam)
1819
* Restored version stamping of installed DLLs (#2349, @Avasam)
1920
* Fixed a circular import between `win32comext.axscript.client.framework` and `win32comext.axscript.client.error` (#2381, @Avasam)

Pythonwin/pywin/framework/interact.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def __init__(self, locals=None, globals=None):
300300
self.globals = globals
301301
code.InteractiveInterpreter.__init__(self, locals)
302302

303-
def showsyntaxerror(self, filename=None):
303+
def showsyntaxerror(self, filename=None, **kwargs):
304304
sys.stderr.write(
305305
tracebackHeader.decode("ascii")
306306
) # So the color syntaxer recognises it.

0 commit comments

Comments
 (0)