]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-62184: Remove _pyio import of _io.FileIO (gh-134192) (gh-134436)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 21 May 2025 15:55:55 +0000 (17:55 +0200)
committerGitHub <noreply@github.com>
Wed, 21 May 2025 15:55:55 +0000 (17:55 +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.
(cherry picked from commit 0a68068bd2a5bff98998067a141b17af5be9b750)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
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 757b339327d2b5b4533e8effd2c9fba8dd2fe3e6..d65e32252123ca92911e81bc62e1cb7e99014a3a 100644 (file)
@@ -654,8 +654,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