aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-10-19 13:02:37 +0100
committerJason R. Coombs <jaraco@jaraco.com>2014-10-19 13:02:37 +0100
commitae6eb3131a935824d1aca43c6ac5ac6bb4907078 (patch)
treeef06beac9a016ffd4aa2ac8e020d3a557aa408e5 /setuptools/dist.py
parent3d532f52850f0c860f0031519a25231797320976 (diff)
downloadexternal_python_setuptools-ae6eb3131a935824d1aca43c6ac5ac6bb4907078.tar.gz
external_python_setuptools-ae6eb3131a935824d1aca43c6ac5ac6bb4907078.tar.bz2
external_python_setuptools-ae6eb3131a935824d1aca43c6ac5ac6bb4907078.zip
Declare argtypes and restype on SetFileAttributesW so that it will cast Python 2 bytestrings to Unicode automatically.
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 4f302232..6b9d350e 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -14,7 +14,7 @@ from distutils.errors import (DistutilsOptionError, DistutilsPlatformError,
DistutilsSetupError)
from setuptools.depends import Require
-from setuptools.compat import basestring, PY2, unicode
+from setuptools.compat import basestring, PY2
from setuptools import windows_support
import pkg_resources
@@ -310,7 +310,7 @@ class Distribution(_Distribution):
egg_cache_dir = os.path.join(os.curdir, '.eggs')
if not os.path.exists(egg_cache_dir):
os.mkdir(egg_cache_dir)
- windows_support.hide_file(unicode(egg_cache_dir))
+ windows_support.hide_file(egg_cache_dir)
readme_txt_filename = os.path.join(egg_cache_dir, 'README.txt')
with open(readme_txt_filename, 'w') as f:
f.write('This directory contains eggs that were downloaded '