Commit 2cd7f22e authored by Jason R. Coombs's avatar Jason R. Coombs

Correctly honor exist_ok. Ref #1083.

parent 04a306fa
v36.1.1
-------
* #1083: Correct ``py31compat.makedirs`` to correctly honor
``exist_ok`` parameter.
* #1083: Also use makedirs compatibility throughout setuptools.
v36.1.0
-------
......
......@@ -10,7 +10,7 @@ def _makedirs_31(path, exist_ok=False):
try:
os.makedirs(path)
except OSError as exc:
if exc.errno != errno.EEXIST:
if not exist_ok or exc.errno != errno.EEXIST:
raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment