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/egg_info.py | |
| parent | 7e97def47723303fafabe48b22168bbc11bb4821 (diff) | |
| download | python-setuptools-git-796abd8dbec884cedf326cb5f85512a5d5648c4e.tar.gz | |
Fix for Python 4: replace unsafe six.PY3 with PY2
Diffstat (limited to 'setuptools/command/egg_info.py')
| -rw-r--r-- | setuptools/command/egg_info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 5d8f451e..a5c5a2fc 100644 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -266,7 +266,7 @@ class egg_info(InfoCommon, Command): to the file. """ log.info("writing %s to %s", what, filename) - if six.PY3: + if not six.PY2: data = data.encode("utf-8") if not self.dry_run: f = open(filename, 'wb') |
