Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0a68068

Browse filesBrowse files
authored
gh-62184: Remove _pyio import of _io.FileIO (gh-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.
1 parent 5b0e827 commit 0a68068
Copy full SHA for 0a68068

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎Lib/_pyio.py

Copy file name to clipboardExpand all lines: Lib/_pyio.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,6 @@ def write(self, b):
648648
self._unsupported("write")
649649

650650
io.RawIOBase.register(RawIOBase)
651-
from _io import FileIO
652-
RawIOBase.register(FileIO)
653651

654652

655653
class BufferedIOBase(IOBase):
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.