[Python-checkins] cpython: explicitly set UnsupportedOperation's module rather than relying on incorrect
benjamin.peterson
python-checkins at python.org
Tue May 8 04:19:49 CEST 2012
http://hg.python.org/cpython/rev/2cd9dadd5c6c
changeset: 76830:2cd9dadd5c6c
user: Benjamin Peterson <benjamin at python.org>
date: Mon May 07 22:19:42 2012 -0400
summary:
explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745)
files:
Lib/io.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Lib/io.py b/Lib/io.py
--- 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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list