Issue #16704: Get rid of select.error in stdlib. Use OSError instead.

This commit is contained in:
Andrew Svetlov 2012-12-17 22:23:46 +02:00
parent 5ee29491e5
commit 6d8a122b9c
5 changed files with 8 additions and 8 deletions

View file

@ -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