Skip to content

Commit bbdff64

Browse files
committed
Accept source in showsyntaxerror
1 parent f0c0230 commit bbdff64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def runsource(
152152
with self.timer:
153153
return super().runsource(source, filename, symbol)
154154

155-
def showsyntaxerror(self, filename: Optional[str] = None) -> None:
155+
def showsyntaxerror(self, filename: Optional[str] = None, source: Optional[str] = None) -> None:
156156
"""Override the regular handler, the code's copied and pasted from
157157
code.py, as per showtraceback, but with the syntaxerror callback called
158158
and the text in a pretty colour."""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy