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): ...

View File

@@ -12,7 +12,7 @@ from multiprocessing.context import (
ProcessError, BufferTooShort, TimeoutError, AuthenticationError)
from multiprocessing.managers import SyncManager
from multiprocessing.process import current_process as current_process
from multiprocessing.queues import Queue, SimpleQueue, JoinableQueue
from multiprocessing.queues import Queue as Queue, SimpleQueue as SimpleQueue, JoinableQueue as JoinableQueue
import sys
# N.B. The functions below are generated at runtime by partially applying