diff options
| author | Benjamin Peterson <benjamin@python.org> | 2012-05-07 22:19:42 -0400 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2012-05-07 22:19:42 -0400 |
| commit | 346a1aa90ac6518c1838f69f2252fc53eaf55072 (patch) | |
| tree | cedf4f05c4f29f44fe3070d8a07d083818142138 | |
| parent | e945bc26451f7c407bb7ba253eb45782f7bcdb26 (diff) | |
| download | cpython-346a1aa90ac6518c1838f69f2252fc53eaf55072.tar.gz | |
explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745)
| -rw-r--r-- | Lib/io.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -67,6 +67,9 @@ from _io import (DEFAULT_BUFFER_SIZE, BlockingIOError, UnsupportedOperation, OpenWrapper = _io.open # for compatibility with _pyio +# Pretend this exception was created here. +UnsupportedOperation.__module__ = "io" + # for seek() SEEK_SET = 0 SEEK_CUR = 1 |
