diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-11-14 15:37:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 15:37:56 (GMT) |
commit | ee06fffd38cb51ce1c045da9d8336d9ce13c318a (patch) | |
tree | 764d92fd0d9f750b2973004c2e7f46c91299adbf /Misc | |
parent | a519b87958da0b340caef48349d6e3c23c98e47e (diff) | |
download | cpython-ee06fffd38cb51ce1c045da9d8336d9ce13c318a.zip cpython-ee06fffd38cb51ce1c045da9d8336d9ce13c318a.tar.gz cpython-ee06fffd38cb51ce1c045da9d8336d9ce13c318a.tar.bz2 |
gh-111942: Fix crashes in TextIOWrapper.reconfigure() (GH-111976)
* Fix crash when encoding is not string or None.
* Fix crash when both line_buffering and write_through raise exception
when converted ti int.
* Add a number of tests for constructor and reconfigure() method
with invalid arguments.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-11-10-22-08-28.gh-issue-111942.MDFm6v.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-11-10-22-08-28.gh-issue-111942.MDFm6v.rst b/Misc/NEWS.d/next/Library/2023-11-10-22-08-28.gh-issue-111942.MDFm6v.rst new file mode 100644 index 0000000..4fc505c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-11-10-22-08-28.gh-issue-111942.MDFm6v.rst @@ -0,0 +1,2 @@ +Fix crashes in :meth:`io.TextIOWrapper.reconfigure` when pass invalid +arguments, e.g. non-string encoding. |