aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/sdist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-05-17 12:25:31 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-05-17 12:25:31 -0400
commit8567ca65adbf927a0af5c9b7314688dfbc46ab66 (patch)
tree345ee8e9d0eaa61a64786215cf6bda53abd5b5e5 /setuptools/command/sdist.py
parent3c85da71f22c43041e7475b01b4683f22fc3a618 (diff)
downloadexternal_python_setuptools-8567ca65adbf927a0af5c9b7314688dfbc46ab66.tar.gz
external_python_setuptools-8567ca65adbf927a0af5c9b7314688dfbc46ab66.tar.bz2
external_python_setuptools-8567ca65adbf927a0af5c9b7314688dfbc46ab66.zip
Use PY3 and PY2 throughout
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-xsetuptools/command/sdist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index 948d27fa..f9a5b7b9 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -8,6 +8,7 @@ import distutils.command.sdist as orig
from distutils.util import convert_path
from distutils import log
from setuptools import svn_utils
+from setuptools.compat import PY3
READMES = ('README', 'README.rst', 'README.txt')
@@ -230,7 +231,7 @@ class sdist(orig.sdist):
manifest = open(self.manifest, 'rbU')
for line in manifest:
# The manifest must contain UTF-8. See #303.
- if sys.version_info >= (3,):
+ if PY3:
try:
line = line.decode('UTF-8')
except UnicodeDecodeError: