Skip to content

Commit

Permalink
Merge pull request #13336 from meeseeksmachine/auto-backport-of-pr-13…
Browse files Browse the repository at this point in the history
…334-on-7.x

Backport PR #13334 on branch 7.x (Fix race condition in paths.get_ipython_dirs())
  • Loading branch information
Carreau committed Nov 26, 2021
2 parents fad75ee + 9fae8d0 commit 696d7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/paths.py
Expand Up @@ -67,7 +67,7 @@ def get_ipython_dir() -> str:
" using a temp directory.".format(parent))
ipdir = tempfile.mkdtemp()
else:
os.makedirs(ipdir)
os.makedirs(ipdir, exist_ok=True)
assert isinstance(ipdir, str), "all path manipulation should be str(unicode), but are not."
return ipdir

Expand Down

0 comments on commit 696d7c5

Please sign in to comment.