summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-03-02 19:07:05 -0500
committerGitHub <noreply@github.com>2017-03-02 19:07:05 -0500
commit093d280dd2f801aae749cbd7f416982fe1e2383d (patch)
treee65f1efc1ae81843fdbc6078e6a5ffe6366304fe
parentd4c215a7c61fb1f94b88bd2aa0b332ebaff18193 (diff)
parent20aca0e37e2003a364098a27189c732197ccbec2 (diff)
downloadpython-setuptools-git-093d280dd2f801aae749cbd7f416982fe1e2383d.tar.gz
Merge pull request #988 from estyrke/patch-1
Fix for auto_chmod behavior
-rwxr-xr-xsetuptools/command/easy_install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index f5ca0754..ef83f7ae 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1675,7 +1675,7 @@ def _first_line_re():
def auto_chmod(func, arg, exc):
- if func is os.remove and os.name == 'nt':
+ if func in [os.unlink, os.remove] and os.name == 'nt':
chmod(arg, stat.S_IWRITE)
return func(arg)
et, ev, _ = sys.exc_info()