Skip to content

Commit

Permalink
Backport PR #13334: Fix race condition in paths.get_ipython_dirs()
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored and meeseeksmachine committed Nov 26, 2021
1 parent fad75ee commit 9fae8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/paths.py
Original file line number Diff line number Diff line change
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 9fae8d0

Please sign in to comment.