We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c0230 commit bbdff64Copy full SHA for bbdff64
bpython/repl.py
@@ -152,7 +152,7 @@ def runsource(
152
with self.timer:
153
return super().runsource(source, filename, symbol)
154
155
- def showsyntaxerror(self, filename: Optional[str] = None) -> None:
+ def showsyntaxerror(self, filename: Optional[str] = None, source: Optional[str] = None) -> None:
156
"""Override the regular handler, the code's copied and pasted from
157
code.py, as per showtraceback, but with the syntaxerror callback called
158
and the text in a pretty colour."""
0 commit comments