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.
A
Antoine Pitrou committed
77b338be20f29712c0774e7c2d36d7afb541e4b6
Parent: 338eae3