summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-07 11:31:47 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-07 11:31:47 (GMT)
commit427f10b442bd4747262069596095cc3a8e0458e6 (patch)
treefffa5536886689fb360c15440205cf5d7bf97475 /Modules/_io
parent2c5a830f2ac654e643eaa29ef60bd51977700376 (diff)
parent606ab86c0e11eb00fc276c694bff9d7f9239d538 (diff)
downloadcpython-427f10b442bd4747262069596095cc3a8e0458e6.zip
cpython-427f10b442bd4747262069596095cc3a8e0458e6.tar.gz
cpython-427f10b442bd4747262069596095cc3a8e0458e6.tar.bz2
Merge from 3.5.
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/_iomodule.c2
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);