diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-07 11:31:20 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-07 11:31:20 (GMT) |
commit | 606ab86c0e11eb00fc276c694bff9d7f9239d538 (patch) | |
tree | cf5d3b34fcee94d247e8d3e53ac2bbe5517a3882 /Modules | |
parent | 5adfac2c1b7fb4f0782d097e7e0e6c5614965634 (diff) | |
download | cpython-606ab86c0e11eb00fc276c694bff9d7f9239d538.zip cpython-606ab86c0e11eb00fc276c694bff9d7f9239d538.tar.gz cpython-606ab86c0e11eb00fc276c694bff9d7f9239d538.tar.bz2 |
Change order of io.UnsupportedOperation base classes.
This makes tests passing after changes by issue #5322.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_io/_iomodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index 65c955a..e9f22af 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c @@ -654,7 +654,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); |