aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/sdist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-01-11 23:28:50 -0500
committerGitHub <noreply@github.com>2020-01-11 23:28:50 -0500
commit70b3ec0bf0f61d6b7de1beff4bad4b845d836100 (patch)
tree216f8873ad05d29714c19d079c74e7fa5b8e94c9 /setuptools/command/sdist.py
parent7e97def47723303fafabe48b22168bbc11bb4821 (diff)
parentb84a0997af9b5ba757d39b0631545f53d03bc741 (diff)
downloadexternal_python_setuptools-70b3ec0bf0f61d6b7de1beff4bad4b845d836100.tar.gz
external_python_setuptools-70b3ec0bf0f61d6b7de1beff4bad4b845d836100.tar.bz2
external_python_setuptools-70b3ec0bf0f61d6b7de1beff4bad4b845d836100.zip
Merge pull request #1959 from hugovk/fix-flake8-2020
Fix for Python 4: replace unsafe six.PY3 with PY2
Diffstat (limited to 'setuptools/command/sdist.py')
-rw-r--r--setuptools/command/sdist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index a851453f..8c3438ea 100644
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -207,7 +207,7 @@ class sdist(sdist_add_defaults, orig.sdist):
manifest = open(self.manifest, 'rb')
for line in manifest:
# The manifest must contain UTF-8. See #303.
- if six.PY3:
+ if not six.PY2:
try:
line = line.decode('UTF-8')
except UnicodeDecodeError: