summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-12-14 18:00:06 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-12-14 18:00:06 (GMT)
commit77b338be20f29712c0774e7c2d36d7afb541e4b6 (patch)
tree071314bbc64d33e1cb3284764a1c7f2f13423bea /Misc
parent338eae3460be044e1af9c590dff1a15baaa0520a (diff)
downloadcpython-77b338be20f29712c0774e7c2d36d7afb541e4b6.zip
cpython-77b338be20f29712c0774e7c2d36d7afb541e4b6.tar.gz
cpython-77b338be20f29712c0774e7c2d36d7afb541e4b6.tar.bz2
Issue #4757: `zlib.compress` and other methods in the zlib module now
raise a TypeError when given an `str` object (rather than a `bytes`-like object). Patch by Victor Stinner and Florent Xicluna.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 335460a..e4c13a3 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -157,6 +157,10 @@ C-API
Library
-------
+- Issue #4757: `zlib.compress` and other methods in the zlib module now
+ raise a TypeError when given an `str` object (rather than a `bytes`-like
+ object). Patch by Victor Stinner and Florent Xicluna.
+
- Issue #7349: Make methods of file objects in the io module accept None as an
argument where file-like objects (ie StringIO and BytesIO) accept them to mean
the same as passing no argument.