Skip to content

Commit f1490c8

Browse files
cmaloneymiss-islington
authored andcommitted
pythongh-62184: Remove _pyio import of _io.FileIO (pythongh-134192)
This was added in the add of `_io`, isn't used since bpo-21859 when a `_pyio` implementation was added which defines `FileIO` lower down in the file. (cherry picked from commit 0a68068) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
1 parent e1e8533 commit f1490c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/_pyio.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,6 @@ def write(self, b):
654654
self._unsupported("write")
655655

656656
io.RawIOBase.register(RawIOBase)
657-
from _io import FileIO
658-
RawIOBase.register(FileIO)
659657

660658

661659
class BufferedIOBase(IOBase):
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Remove import of C implementation of :class:`io.FileIO` from Python
2+
implementation which has its own implementation

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy