]> 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:42 +0000 (12:10 -0800)
committerGitHub <noreply@github.com>
Fri, 24 Jan 2020 20:10:42 +0000 (12:10 -0800)
commitea4a61fec842c94107eef46e5030b89a086f94bb
tree079b85b3e17967c472cee63081a68d30041e7f28
parent0ea7309927d1b3efde9be986528b8855f0f4c955
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]