diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-19 14:33:35 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-19 14:33:35 +0200 |
commit | 4c3208fadf4fea67e916d8d8c7a04a28c4ad92f9 (patch) | |
tree | 5e55f539c25d4cf53bd55b4c873b12465b6382b0 /Modules/_multiprocessing/multiprocessing.c | |
parent | e3011323dd351c11919da6e4c6acfaa9aadc8b71 (diff) | |
download | cpython-4c3208fadf4fea67e916d8d8c7a04a28c4ad92f9.tar.gz |
Issue #16719: Get rid of WindowsError. Use OSError instead
Patch by Serhiy Storchaka.
Diffstat (limited to 'Modules/_multiprocessing/multiprocessing.c')
-rw-r--r-- | Modules/_multiprocessing/multiprocessing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index 110eff710e..a77c3b341c 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -21,12 +21,12 @@ _PyMp_SetError(PyObject *Type, int num) #ifdef MS_WINDOWS case MP_STANDARD_ERROR: if (Type == NULL) - Type = PyExc_WindowsError; + Type = PyExc_OSError; PyErr_SetExcFromWindowsErr(Type, 0); break; case MP_SOCKET_ERROR: if (Type == NULL) - Type = PyExc_WindowsError; + Type = PyExc_OSError; PyErr_SetExcFromWindowsErr(Type, WSAGetLastError()); break; #else /* !MS_WINDOWS */ |