]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 24 Jan 2020 17:55:52 +0000 (19:55 +0200)
committerEthan Furman <ethan@stoneleaf.us>
Fri, 24 Jan 2020 17:55:52 +0000 (09:55 -0800)
commit9017e0bd5e124ae6d2ed94b9e9cacb2e86270980
treedc0c524bf18c6d0c7bae08d1423512632cc4a56f
parent656c45ec9a9dc2e94cec199ebde553a6979e0e05
bpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161)

Use `from ... import ...` to ensure module is fully loaded before accessing its attributes.
Lib/tarfile.py
Misc/NEWS.d/next/Library/2020-01-24-11-05-21.bpo-39430.I0UQzM.rst [new file with mode: 0644]