summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 14:15:35 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 14:15:35 (GMT)
commitdf485ca493b52dd8f1848794b5a58e3c3d8e92b1 (patch)
tree973566bf4fa3559e5c518648c636c8e8892427be /Lib
parent527e725732b01c92fb141cb7b667e30860dc6f17 (diff)
downloadcpython-df485ca493b52dd8f1848794b5a58e3c3d8e92b1.zip
cpython-df485ca493b52dd8f1848794b5a58e3c3d8e92b1.tar.gz
cpython-df485ca493b52dd8f1848794b5a58e3c3d8e92b1.tar.bz2
Remove obsolete code: now IOError and WindowsError are aliases for OSError
Diffstat (limited to 'Lib')
-rw-r--r--Lib/subprocess.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index c015104..09c85da 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -396,8 +396,6 @@ if mswindows:
hStdOutput = None
hStdError = None
wShowWindow = 0
- class pywintypes:
- error = IOError
else:
import select
_has_poll = hasattr(select, 'poll')
@@ -1102,12 +1100,6 @@ class Popen(object):
env,
cwd,
startupinfo)
- except pywintypes.error as e:
- # Translate pywintypes.error to WindowsError, which is
- # a subclass of OSError. FIXME: We should really
- # translate errno using _sys_errlist (or similar), but
- # how can this be done from Python?
- raise WindowsError(*e.args)
finally:
# Child is launched. Close the parent's copy of those pipe
# handles that only the child should have open. You need