mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #16704: Get rid of select.error in stdlib. Use OSError instead.
This commit is contained in:
parent
5ee29491e5
commit
6d8a122b9c
5 changed files with 8 additions and 8 deletions
|
@ -313,7 +313,7 @@ class Telnet:
|
|||
while i < 0 and not self.eof:
|
||||
try:
|
||||
ready = poller.poll(call_timeout)
|
||||
except select.error as e:
|
||||
except OSError as e:
|
||||
if e.errno == errno.EINTR:
|
||||
if timeout is not None:
|
||||
elapsed = time() - time_start
|
||||
|
@ -683,7 +683,7 @@ class Telnet:
|
|||
while not m and not self.eof:
|
||||
try:
|
||||
ready = poller.poll(call_timeout)
|
||||
except select.error as e:
|
||||
except OSError as e:
|
||||
if e.errno == errno.EINTR:
|
||||
if timeout is not None:
|
||||
elapsed = time() - time_start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue