SIGN IN SIGN UP

bpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a bad zlib.decompress() (GH-3784)

While a rare potential failure (it requires swapping out zlib.decompress() itself and forcing it to return a non-bytes object), this change prevents a potential C-level assertion failure and instead substitutes it with an exception.

Thanks to Oren Milman for the patch.
O
Oren Milman committed
01c6a8859ef2ff5545a87cf537573bd342c848bf
Parent: 6603373
Committed by Brett Cannon <brettcannon@users.noreply.github.com> on 9/29/2017, 6:34:31 PM