diff options
author | Hugo <hugovk@users.noreply.github.com> | 2020-01-08 19:10:11 +0200 |
---|---|---|
committer | Hugo <hugovk@users.noreply.github.com> | 2020-01-08 19:10:11 +0200 |
commit | 796abd8dbec884cedf326cb5f85512a5d5648c4e (patch) | |
tree | cacbbdc28822b519f87b679a8262687421d13c01 /setuptools/command/easy_install.py | |
parent | 7e97def47723303fafabe48b22168bbc11bb4821 (diff) | |
download | external_python_setuptools-796abd8dbec884cedf326cb5f85512a5d5648c4e.tar.gz external_python_setuptools-796abd8dbec884cedf326cb5f85512a5d5648c4e.tar.bz2 external_python_setuptools-796abd8dbec884cedf326cb5f85512a5d5648c4e.zip |
Fix for Python 4: replace unsafe six.PY3 with PY2
Diffstat (limited to 'setuptools/command/easy_install.py')
-rw-r--r-- | setuptools/command/easy_install.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 09066f8c..426301d6 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1567,7 +1567,7 @@ def get_exe_prefixes(exe_filename): continue if parts[0].upper() in ('PURELIB', 'PLATLIB'): contents = z.read(name) - if six.PY3: + if not six.PY2: contents = contents.decode() for pth in yield_lines(contents): pth = pth.strip().replace('\\', '/') |