]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Jan 2020 20:10:52 +0000 (12:10 -0800)
committerGitHub <noreply@github.com>
Fri, 24 Jan 2020 20:10:52 +0000 (12:10 -0800)
commit1a274359283d3d1f4f60dd527843f72e0368caf3
tree71f25d204de9bb5a4ebf6aa556950f339a0e0805
parent61b3484cdf27ceca1c1069a351487d2db4b2b48c
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.
(cherry picked from commit 9017e0bd5e124ae6d2ed94b9e9cacb2e86270980)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/tarfile.py
Misc/NEWS.d/next/Library/2020-01-24-11-05-21.bpo-39430.I0UQzM.rst [new file with mode: 0644]