summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 20:23:46 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 20:23:46 (GMT)
commit6d8a122b9c0f9a8032030c208a467a4923a96266 (patch)
tree40d497f177b35a7e77f7bbafde81f8f9cfa8f38a /Lib/subprocess.py
parent5ee29491e57b7477921f71e8dacfe1e1a3336912 (diff)
downloadcpython-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/subprocess.py')
-rw-r--r--Lib/subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 09c85da..ac960f9 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -1614,7 +1614,7 @@ class Popen(object):
raise TimeoutExpired(self.args, orig_timeout)
try:
ready = poller.poll(timeout)
- except select.error as e:
+ except OSError as e:
if e.args[0] == errno.EINTR:
continue
raise
@@ -1682,7 +1682,7 @@ class Popen(object):
(rlist, wlist, xlist) = \
select.select(self._read_set, self._write_set, [],
timeout)
- except select.error as e:
+ except OSError as e:
if e.args[0] == errno.EINTR:
continue
raise