diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2019-09-12 14:13:44 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2019-09-12 14:13:44 (GMT) |
commit | 2f1b857562b0f1601c9019db74c29b7d7e21ac9f (patch) | |
tree | 09ba434a35ab308f400440d36aa5a1051d3785bb /Lib/zipfile.py | |
parent | 99b54d68172ad64ba3d0fdc0137f0df88c28ea2b (diff) | |
download | cpython-2f1b857562b0f1601c9019db74c29b7d7e21ac9f.zip cpython-2f1b857562b0f1601c9019db74c29b7d7e21ac9f.tar.gz cpython-2f1b857562b0f1601c9019db74c29b7d7e21ac9f.tar.bz2 |
bpo-36991: Fix incorrect exception escaping ZipFile.extract() (GH-13632)
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index c2c5b6a..97a5ebf 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -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: |