diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-05-08 02:19:42 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-05-08 02:19:42 (GMT) |
commit | bbf83933c5c6e8d5d171c11fb1c8feeeb825bcf3 (patch) | |
tree | cbbf45d5471d9476ad9e90d39c5b3d787c7c3c9f /Lib/io.py | |
parent | 106802547c0180a29a8a55640d1f5b8ae670d657 (diff) | |
download | cpython-bbf83933c5c6e8d5d171c11fb1c8feeeb825bcf3.zip cpython-bbf83933c5c6e8d5d171c11fb1c8feeeb825bcf3.tar.gz cpython-bbf83933c5c6e8d5d171c11fb1c8feeeb825bcf3.tar.bz2 |
explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745)
Diffstat (limited to 'Lib/io.py')
-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 |