diff options
author | Ćukasz Langa <lukasz@langa.pl> | 2021-09-29 10:56:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 10:56:14 (GMT) |
commit | 7bff4d396f20451f20977be3ce23a879c6bc3e46 (patch) | |
tree | 5f8e6931c6576b28f02be4b7cacd0458d07a5d66 /Lib/threading.py | |
parent | c6b5ceae3475d7782ed88f4e54bdb2232a8eb088 (diff) | |
download | cpython-7bff4d396f20451f20977be3ce23a879c6bc3e46.zip cpython-7bff4d396f20451f20977be3ce23a879c6bc3e46.tar.gz cpython-7bff4d396f20451f20977be3ce23a879c6bc3e46.tar.bz2 |
[3.9] bpo-39039: tarfile raises descriptive exception from zlib.error (GH-27766) (GH-28614)
* during tarfile parsing, a zlib error indicates invalid data
* tarfile.open now raises a descriptive exception from the zlib error
* this makes it clear to the user that they may be trying to open a
corrupted tar file.
(cherry picked from commit b6fe8572509b77d2002eaddf99d718e9b4835684)
Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Diffstat (limited to 'Lib/threading.py')
0 files changed, 0 insertions, 0 deletions