Skip to content

Commit 60c189f

Browse files
Update docstring for __get_prompt_str
Co-authored-by: Chris Eibl <[email protected]>
1 parent cac161d commit 60c189f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_pyrepl/reader.py

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

0 commit comments

Comments
 (0)