
python-checkins at python
May 7, 2012, 7:19 PM
Post #1 of 1
(34 views)
Permalink
|
|
cpython: explicitly set UnsupportedOperation's module rather than relying on incorrect
|
|
http://hg.python.org/cpython/rev/2cd9dadd5c6c changeset: 76830:2cd9dadd5c6c user: Benjamin Peterson <benjamin [at] python> 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
|