https://github.com/python/cpython/commit/2d11f3e1545e8c2f32b6d01cc0f6ddb58983dd74 commit: 2d11f3e1545e8c2f32b6d01cc0f6ddb58983dd74 branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: ambv <luk...@langa.pl> date: 2025-05-21T17:55:55+02:00 summary:
[3.13] gh-62184: Remove _pyio import of _io.FileIO (gh-134192) (gh-134436) 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 <cmalo...@users.noreply.github.com> files: A Misc/NEWS.d/next/Library/2025-05-18-12-48-39.gh-issue-62184.y11l10.rst M Lib/_pyio.py diff --git a/Lib/_pyio.py b/Lib/_pyio.py index 757b339327d2b5..d65e32252123ca 100644 --- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -654,8 +654,6 @@ def write(self, b): 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 index 00000000000000..7bc994e57fb58f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-05-18-12-48-39.gh-issue-62184.y11l10.rst @@ -0,0 +1,2 @@ +Remove import of C implementation of :class:`io.FileIO` from Python +implementation which has its own implementation _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: arch...@mail-archive.com