Fix some problems introduced by recent commits. (#1905)

This commit is contained in:
Ivan Levkivskyi
2018-02-20 21:34:48 +00:00
committed by Jelle Zijlstra
parent d3a9650fa1
commit 7ae2f25216
2 changed files with 3 additions and 4 deletions

View File

@@ -947,11 +947,10 @@ class OSError(Exception):
filename = ... # type: Any
if sys.version_info >= (3, 4):
filename2 = ... # type: Any
if sys.platform == 'win32':
winerror = 0
IOError = OSError
EnvironmentError = OSError
WindowsError = OSError
class WindowsError(OSError):
winerror = ... # type: int
class LookupError(Exception): ...
class RuntimeError(Exception): ...
class ValueError(Exception): ...