]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-62184: Remove _pyio import of _io.FileIO (gh-134192)
authorCody Maloney <cmaloney@users.noreply.github.com>
Wed, 21 May 2025 15:29:18 +0000 (11:29 -0400)
committerGitHub <noreply@github.com>
Wed, 21 May 2025 15:29:18 +0000 (17:29 +0200)
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.

Lib/_pyio.py
Misc/NEWS.d/next/Library/2025-05-18-12-48-39.gh-issue-62184.y11l10.rst [new file with mode: 0644]

index 300d5b3cbce32bba8b5898ef9356acc2e0366ff5..fb2a6d049caab66d0fdd63311a1733582a520e6b 100644 (file)
@@ -648,8 +648,6 @@ class RawIOBase(IOBase):
         self._unsupported("write")
 
 io.RawIOBase.register(RawIOBase)
-from _io import FileIO
-RawIOBase.register(FileIO)
 
 
 class BufferedIOBase(IOBase):
diff --git a/Misc/NEWS.d/next/Library/2025-05-18-12-48-39.gh-issue-62184.y11l10.rst b/Misc/NEWS.d/next/Library/2025-05-18-12-48-39.gh-issue-62184.y11l10.rst
new file mode 100644 (file)
index 0000000..7bc994e
--- /dev/null
@@ -0,0 +1,2 @@
+Remove import of C implementation of :class:`io.FileIO` from Python
+implementation which has its own implementation