]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
issue-25872: Fix KeyError using linecache from multiple threads (GH-18007)
authorMichael Graczyk <mgraczyk@users.noreply.github.com>
Wed, 13 May 2020 22:41:57 +0000 (17:41 -0500)
committerGitHub <noreply@github.com>
Wed, 13 May 2020 22:41:57 +0000 (18:41 -0400)
commitd72ea605218bbee6ae46648997d9bb76d0fba460
tree17f485c685bed468a44e2ed27e3c3e4b639ab805
parent97e1568325e4d8eff2fc80eeb174b3f3e5d1c350
issue-25872: Fix KeyError using linecache from multiple threads (GH-18007)

The crash that this fixes occurs when using traceback and other modules from multiple threads;
del cache[filename] can raise a KeyError.
Lib/linecache.py