mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
bpo-36991: Fix incorrect exception escaping ZipFile.extract() (GH-13632)
(cherry picked from commit 2f1b857562
)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
This commit is contained in:
parent
0d7cb5bb29
commit
717cc61ed1
3 changed files with 14 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue