commit | bbf83933c5c6e8d5d171c11fb1c8feeeb825bcf3 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Mon May 07 22:19:42 2012 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Mon May 07 22:19:42 2012 -0400 |
tree | cbbf45d5471d9476ad9e90d39c5b3d787c7c3c9f | |
parent | 106802547c0180a29a8a55640d1f5b8ae670d657 [diff] [blame] |
explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745)
diff --git a/Lib/io.py b/Lib/io.py index 87fab92..6c7cec9 100644 --- a/Lib/io.py +++ b/Lib/io.py
@@ -67,6 +67,9 @@ OpenWrapper = _io.open # for compatibility with _pyio +# Pretend this exception was created here. +UnsupportedOperation.__module__ = "io" + # for seek() SEEK_SET = 0 SEEK_CUR = 1