Skip to content

Commit 1954aa5

Browse files
Nit: Drop redundant Py_None fallbacks in the WinError branch
1 parent 8224d63 commit 1954aa5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Objects/exceptions.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2355,8 +2355,7 @@ OSError_str(PyObject *op)
23552355
}
23562356
if (winerror && strerror) {
23572357
res = PyUnicode_FromFormat("[WinError %S] %S",
2358-
winerror ? winerror: Py_None,
2359-
strerror ? strerror: Py_None);
2358+
winerror, strerror);
23602359
goto done;
23612360
}
23622361
#endif

0 commit comments

Comments
 (0)