aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 22501c44..646f9460 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -128,7 +128,7 @@ class egg_info(Command):
to the file.
"""
log.info("writing %s to %s", what, filename)
- if sys.version_info >= (3,):
+ if PY3:
data = data.encode("utf-8")
if not self.dry_run:
f = open(filename, 'wb')