bpo-36991: Fix incorrect exception escaping ZipFile.extract() (GH-13632)

This commit is contained in:
Berker Peksag 2019-09-12 17:13:44 +03:00 committed by Gregory P. Smith
parent 99b54d6817
commit 2f1b857562
3 changed files with 14 additions and 0 deletions

View file

@ -703,6 +703,7 @@ def _get_compressor(compress_type, compresslevel=None):
def _get_decompressor(compress_type):
_check_compression(compress_type)
if compress_type == ZIP_STORED:
return None
elif compress_type == ZIP_DEFLATED: