gh-132952: Speed up startup by importing _io instead of io (#132957)

This commit is contained in:
Jelle Zijlstra 2025-04-28 08:38:56 -07:00 committed by GitHub
parent 7f16f1bc11
commit 58567cc18c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 50 additions and 6 deletions

View file

@ -60,9 +60,6 @@ from _io import (DEFAULT_BUFFER_SIZE, BlockingIOError, UnsupportedOperation,
IncrementalNewlineDecoder, text_encoding, TextIOWrapper)
# Pretend this exception was created here.
UnsupportedOperation.__module__ = "io"
# for seek()
SEEK_SET = 0
SEEK_CUR = 1