summaryrefslogtreecommitdiff
path: root/Modules/_multiprocessing/multiprocessing.c
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-19 14:33:35 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-19 14:33:35 +0200
commit4c3208fadf4fea67e916d8d8c7a04a28c4ad92f9 (patch)
tree5e55f539c25d4cf53bd55b4c873b12465b6382b0 /Modules/_multiprocessing/multiprocessing.c
parente3011323dd351c11919da6e4c6acfaa9aadc8b71 (diff)
downloadcpython-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.c4
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 */