cpython: 4a610bc8577b (original) (raw)

Mercurial > cpython

changeset 105510:4a610bc8577b 3.5

Change order of io.UnsupportedOperation base classes. This makes tests passing after changes by issue #5322. [#5322]

Serhiy Storchaka storchaka@gmail.com
date Wed, 07 Dec 2016 13:31:20 +0200
parents 1f31bf3f76f5
children c4f39b6f3176 d350fc4d78ff
files Lib/_pyio.py Modules/_io/_iomodule.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Lib/_pyio.py 2 Modules/_io/_iomodule.c 2

line wrap: on

line diff

--- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -276,7 +276,7 @@ class OpenWrapper: try: UnsupportedOperation = io.UnsupportedOperation except AttributeError:

--- 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){}",