]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-38807: Fix race condition in Lib/trace.py (GH-110143)
authorbuermarc <44375277+buermarc@users.noreply.github.com>
Wed, 17 Jan 2024 20:02:14 +0000 (21:02 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 20:02:14 +0000 (22:02 +0200)
commit78fcde039a33d8463e34356d5462fecee0f2831a
treef4056e00ab6ee8e6f15e496dbedb24a66c23d9ae
parent7573c44c3278eacf0233146037d843bb2563877a
gh-38807: Fix race condition in Lib/trace.py (GH-110143)

Instead of checking if a directory does not exist and thereafter
creating it, directly call os.makedirs() with the exist_ok=True.
Lib/trace.py
Misc/NEWS.d/next/Library/2023-09-22-22-17-45.gh-issue-38807.m9McRN.rst [new file with mode: 0644]