diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 20:23:46 (GMT) |
|---|---|---|
| committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 20:23:46 (GMT) |
| commit | 6d8a122b9c0f9a8032030c208a467a4923a96266 (patch) | |
| tree | 40d497f177b35a7e77f7bbafde81f8f9cfa8f38a /Lib/telnetlib.py | |
| parent | 5ee29491e57b7477921f71e8dacfe1e1a3336912 (diff) | |
| download | cpython-6d8a122b9c0f9a8032030c208a467a4923a96266.zip cpython-6d8a122b9c0f9a8032030c208a467a4923a96266.tar.gz cpython-6d8a122b9c0f9a8032030c208a467a4923a96266.tar.bz2 | |
Issue #16704: Get rid of select.error in stdlib. Use OSError instead.
Diffstat (limited to 'Lib/telnetlib.py')
| -rw-r--r-- | Lib/telnetlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index a59693e..b7c57da 100644 --- a/Lib/telnetlib.py +++ b/Lib/telnetlib.py @@ -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 |
