Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbdff64

Browse files
committed
Accept source in showsyntaxerror
1 parentf0c0230 commitbbdff64

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
withself.timer:
153153
returnsuper().runsource(source,filename,symbol)
154154

155-
defshowsyntaxerror(self,filename:Optional[str]=None)->None:
155+
defshowsyntaxerror(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)

[8]ページ先頭

©2009-2025 Movatter.jp