Skip to content

Commit 1871a4a

Browse files
ZackerySpytzzhangyangyu
authored andcommitted
Remove unneeded PyErr_Clear() in _winapi_SetNamedPipeHandleState_impl() (GH-8281)
1 parent 2e5d2ea commit 1871a4a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Modules/_winapi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,8 +1432,6 @@ _winapi_SetNamedPipeHandleState_impl(PyObject *module, HANDLE named_pipe,
14321432
DWORD dwArgs[3], *pArgs[3] = {NULL, NULL, NULL};
14331433
int i;
14341434

1435-
PyErr_Clear();
1436-
14371435
for (i = 0 ; i < 3 ; i++) {
14381436
if (oArgs[i] != Py_None) {
14391437
dwArgs[i] = PyLong_AsUnsignedLongMask(oArgs[i]);

0 commit comments

Comments
 (0)