[Python-checkins] cpython: Remove obsolete code: now IOError and WindowsError are aliases for OSError
andrew.svetlov
python-checkins at python.org
Mon Dec 17 15:15:43 CET 2012
http://hg.python.org/cpython/rev/a50b409ee89f
changeset: 80909:a50b409ee89f
parent: 80907:a0b1942600a2
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Mon Dec 17 16:15:35 2012 +0200
summary:
Remove obsolete code: now IOError and WindowsError are aliases for OSError
files:
Lib/subprocess.py | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -396,8 +396,6 @@
hStdOutput = None
hStdError = None
wShowWindow = 0
- class pywintypes:
- error = IOError
else:
import select
_has_poll = hasattr(select, 'poll')
@@ -1102,12 +1100,6 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list