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 4605fab commit c332f0dCopy full SHA for c332f0d
bpython/repl.py
@@ -152,7 +152,9 @@ def runsource(
152
with self.timer:
153
return super().runsource(source, filename, symbol)
154
155
- def showsyntaxerror(self, filename: Optional[str] = None, source: Optional[str] = None) -> None:
+ def showsyntaxerror(
156
+ self, filename: Optional[str] = None, source: Optional[str] = None
157
+ ) -> None:
158
"""Override the regular handler, the code's copied and pasted from
159
code.py, as per showtraceback, but with the syntaxerror callback called
160
and the text in a pretty colour."""
0 commit comments