From: Andrew Svetlov Date: Mon, 17 Dec 2012 14:15:35 +0000 (+0200) Subject: Remove obsolete code: now IOError and WindowsError are aliases for OSError X-Git-Tag: v3.4.0a1~1834 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df485ca493b52dd8f1848794b5a58e3c3d8e92b1;p=python Remove obsolete code: now IOError and WindowsError are aliases for OSError --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index c0151046ec..09c85da4c0 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