From 3f4bb06fafdd6db646ac597f0210c33a01e49b70 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Fri, 15 Feb 2013 18:32:17 +0100 Subject: [PATCH] Fix for Python3. --- setup.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 6f56ab5c1..b7cb0f3f2 100644 --- a/setup.py +++ b/setup.py @@ -219,10 +219,7 @@ class MyDistribution (Distribution, object): for name in metanames: method = "get_" + name val = getattr(self.metadata, method)() - if isinstance(val, str): - val = unicode(val) - cmd = "%s = %r" % (name, val) - data.append(cmd) + data.append("%s = %r" % (name, val)) data.append('release_date = "%s"' % get_release_date()) # write the config file util.execute(write_file, (filename, data),