mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-132952: Speed up startup by importing _io instead of io (#132957)
This commit is contained in:
parent
7f16f1bc11
commit
58567cc18c
11 changed files with 50 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue