]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39717: [tarfile] update nested exception raising (GH-23739)
authorEthan Furman <ethan@stoneleaf.us>
Sat, 12 Dec 2020 21:26:44 +0000 (13:26 -0800)
committerGitHub <noreply@github.com>
Sat, 12 Dec 2020 21:26:44 +0000 (13:26 -0800)
commitb5a6db9111562454617b6771b61f2734ea0420c9
tree3cd94fd096f305eb260b6a85f2f84b2a71be5022
parent4b8cdfcb22fbeaab9d954cb693a7fb3362a382b6
bpo-39717: [tarfile] update nested exception raising (GH-23739)

- `from None` if the new exception uses, or doesn't need, the previous one
- `from e` if the previous exception is still relevant
Lib/tarfile.py
Misc/NEWS.d/next/Library/2020-12-10-18-36-52.bpo-39717.sK2u0w.rst [new file with mode: 0644]