Skip to content

Commit 0a0f3e9

Browse files
committed
use bracket for except to support backporting to <3.14
1 parent 75819df commit 0a0f3e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/_pyrepl/base_eventqueue.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, encoding: str, keymap_dict: dict[bytes, str],
4444
self.buf = bytearray()
4545
try:
4646
default = float(os.environ.get("PYREPL_ESC_TIMEOUT", ESC_TIMEOUT_DEFAULT))
47-
except ValueError, OverflowError:
47+
except (ValueError, OverflowError):
4848
default = ESC_TIMEOUT_DEFAULT
4949
if not 0 <= default < float("inf"):
5050
default = ESC_TIMEOUT_DEFAULT

0 commit comments

Comments
 (0)