Commits

Benjamin Peterson committed 2cd9dad

explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745)

  • Participants
  • Parent commits 01581e8

Comments (0)

Files changed (1)

 
 OpenWrapper = _io.open # for compatibility with _pyio
 
+# Pretend this exception was created here.
+UnsupportedOperation.__module__ = "io"
+
 # for seek()
 SEEK_SET = 0
 SEEK_CUR = 1