Remove unneeded PyErr_Clear() in _winapi_SetNamedPipeHandleState_impl() (GH-8281)

This commit is contained in:
Zackery Spytz 2018-08-25 11:10:14 -06:00 committed by Xiang Zhang
parent 2e5d2ea208
commit 1871a4a351
1 changed files with 0 additions and 2 deletions

View File

@ -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]);