aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-07-13 14:16:51 -0400
committerJason R. Coombs <jaraco@jaraco.com>2017-07-13 14:16:51 -0400
commit2cd7f22eb62b413d65fe4208d66f7e2738f71a56 (patch)
treef224d4f0a09bd2ec81e8b9fe68866b5f7a3a79d7 /pkg_resources
parent04a306fa080e8a71f94ea5198b507c501c621cb6 (diff)
downloadexternal_python_setuptools-2cd7f22eb62b413d65fe4208d66f7e2738f71a56.tar.gz
external_python_setuptools-2cd7f22eb62b413d65fe4208d66f7e2738f71a56.tar.bz2
external_python_setuptools-2cd7f22eb62b413d65fe4208d66f7e2738f71a56.zip
Correctly honor exist_ok. Ref #1083.
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/py31compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/py31compat.py b/pkg_resources/py31compat.py
index 28120cac..c6217af7 100644
--- a/pkg_resources/py31compat.py
+++ b/pkg_resources/py31compat.py
@@ -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