Skip to content

Commit 41e191e

Browse files
yihong0618picnixz
andauthored
Update Lib/_pyrepl/unix_console.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent ac14061 commit 41e191e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/_pyrepl/unix_console.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,7 @@ def get_event(self, block: bool = True) -> Event | None:
419419
else:
420420
continue
421421
elif err.errno == errno.EIO:
422-
import sys
423-
sys.exit(errno.EIO)
422+
raise SystemExit(errno.EIO)
424423
else:
425424
raise
426425
else:

0 commit comments

Comments
 (0)