We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1530c0 commit 8b1a2f9Copy full SHA for 8b1a2f9
1 file changed
Objects/exceptions.c
@@ -4601,9 +4601,6 @@ _PyBuiltins_AddExceptions(PyObject *bltinmod)
4601
if (PyDict_SetItemString(mod_dict, "EnvironmentError", PyExc_OSError)) {
4602
return -1;
4603
}
4604
- if (PyDict_SetItemString(mod_dict, "EnvironmentError", PyExc_OSError)) {
4605
- return -1;
4606
- }
4607
if (PyDict_SetItemString(mod_dict, "IOError", PyExc_OSError)) {
4608
4609
0 commit comments