Skip to content

Commit

Permalink
Fix Pythonwin displaying syntax errors in Python 3.13 (#2393) (#2394)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhammond authored Oct 12, 2024
1 parent 6125a61 commit 4f212e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ https://mhammond.github.io/pywin32_installers.html.
Coming in build 308, as yet unreleased
--------------------------------------

* Fix Pythonwin displaying syntax errors in Python 3.13 (#2393)
* Allowed installs from source w/o having pywin32 pre-installed (for instance, from GitHub) (#2349, @Avasam)
* Restored version stamping of installed DLLs (#2349, @Avasam)
* Fixed a circular import between `win32comext.axscript.client.framework` and `win32comext.axscript.client.error` (#2381, @Avasam)
Expand Down
2 changes: 1 addition & 1 deletion Pythonwin/pywin/framework/interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def __init__(self, locals=None, globals=None):
self.globals = globals
code.InteractiveInterpreter.__init__(self, locals)

def showsyntaxerror(self, filename=None):
def showsyntaxerror(self, filename=None, **kwargs):
sys.stderr.write(
tracebackHeader.decode("ascii")
) # So the color syntaxer recognises it.
Expand Down

0 comments on commit 4f212e1

Please sign in to comment.