mirror of https://github.com/python/cpython.git
explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745)
This commit is contained in:
parent
106802547c
commit
bbf83933c5
|
@ -67,6 +67,9 @@
|
||||||
|
|
||||||
OpenWrapper = _io.open # for compatibility with _pyio
|
OpenWrapper = _io.open # for compatibility with _pyio
|
||||||
|
|
||||||
|
# Pretend this exception was created here.
|
||||||
|
UnsupportedOperation.__module__ = "io"
|
||||||
|
|
||||||
# for seek()
|
# for seek()
|
||||||
SEEK_SET = 0
|
SEEK_SET = 0
|
||||||
SEEK_CUR = 1
|
SEEK_CUR = 1
|
||||||
|
|
Loading…
Reference in New Issue