Skip to content

Commit abd1737

Browse files
Merge branch 'pythongh-130698-pyrepl-ps1-exception' of github.com:sergey-miryanov/cpython into pythongh-130698-pyrepl-ps1-exception
2 parents fb66f37 + 60c189f commit abd1737

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/_pyrepl/reader.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def __get_prompt_str(prompt: object, default_prompt: str) -> str:
479479
"""
480480
Convert prompt object to string.
481481
482-
If prompt raise BaseException, MemoryError and SystemError then stop
482+
If str(prompt) raises BaseException, MemoryError or SystemError then stop
483483
the REPL. For other exceptions return default_prompt.
484484
"""
485485
try:

0 commit comments

Comments
 (0)