diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-07 11:32:09 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-07 11:32:09 (GMT) |
commit | d7d266c11387388bb1abe739e9011f5219861b63 (patch) | |
tree | 79f3aeead4e5964afcb4884508b1d754577f6f69 /Modules | |
parent | 09e4a695d17f35375d3a2298ef78fae0e27af8ce (diff) | |
parent | 427f10b442bd4747262069596095cc3a8e0458e6 (diff) | |
download | cpython-d7d266c11387388bb1abe739e9011f5219861b63.zip cpython-d7d266c11387388bb1abe739e9011f5219861b63.tar.gz cpython-d7d266c11387388bb1abe739e9011f5219861b63.tar.bz2 |
Merge from 3.6.
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 60f8b54..f4d3cbd 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c @@ -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); |