From: Zackery Spytz Date: Sat, 25 Aug 2018 17:10:14 +0000 (-0600) Subject: Remove unneeded PyErr_Clear() in _winapi_SetNamedPipeHandleState_impl() (GH-8281) X-Git-Tag: v3.8.0a1~1157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1871a4a35123b278443b960255cb14314ce196f6;p=python Remove unneeded PyErr_Clear() in _winapi_SetNamedPipeHandleState_impl() (GH-8281) --- diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 75d1f0678e..30f269fbdc 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -1432,8 +1432,6 @@ _winapi_SetNamedPipeHandleState_impl(PyObject *module, HANDLE named_pipe, DWORD dwArgs[3], *pArgs[3] = {NULL, NULL, NULL}; int i; - PyErr_Clear(); - for (i = 0 ; i < 3 ; i++) { if (oArgs[i] != Py_None) { dwArgs[i] = PyLong_AsUnsignedLongMask(oArgs[i]);