diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-08-25 17:10:14 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2018-08-25 17:10:14 (GMT) |
commit | 1871a4a35123b278443b960255cb14314ce196f6 (patch) | |
tree | a0537b529fcd1e985add163a6c8f92de0f4b7cb3 /Modules/_winapi.c | |
parent | 2e5d2ea2089e111fb8e5b8c5916242da2906c399 (diff) | |
download | cpython-1871a4a35123b278443b960255cb14314ce196f6.zip cpython-1871a4a35123b278443b960255cb14314ce196f6.tar.gz cpython-1871a4a35123b278443b960255cb14314ce196f6.tar.bz2 |
Remove unneeded PyErr_Clear() in _winapi_SetNamedPipeHandleState_impl() (GH-8281)
Diffstat (limited to 'Modules/_winapi.c')
-rw-r--r-- | Modules/_winapi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 75d1f06..30f269f 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]); |