mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merge from 3.6.
This commit is contained in:
commit
d7d266c113
2 changed files with 2 additions and 2 deletions
|
@ -683,7 +683,7 @@ PyInit__io(void)
|
|||
/* UnsupportedOperation inherits from ValueError and IOError */
|
||||
state->unsupported_operation = PyObject_CallFunction(
|
||||
(PyObject *)&PyType_Type, "s(OO){}",
|
||||
"UnsupportedOperation", PyExc_ValueError, PyExc_IOError);
|
||||
"UnsupportedOperation", PyExc_OSError, PyExc_ValueError);
|
||||
if (state->unsupported_operation == NULL)
|
||||
goto fail;
|
||||
Py_INCREF(state->unsupported_operation);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue