Fix for Python3.

This commit is contained in:
Bastian Kleineidam 2013-02-15 18:32:17 +01:00
parent eed0269bb1
commit 3f4bb06faf

View file

@ -219,10 +219,7 @@ class MyDistribution (Distribution, object):
for name in metanames: for name in metanames:
method = "get_" + name method = "get_" + name
val = getattr(self.metadata, method)() val = getattr(self.metadata, method)()
if isinstance(val, str): data.append("%s = %r" % (name, val))
val = unicode(val)
cmd = "%s = %r" % (name, val)
data.append(cmd)
data.append('release_date = "%s"' % get_release_date()) data.append('release_date = "%s"' % get_release_date())
# write the config file # write the config file
util.execute(write_file, (filename, data), util.execute(write_file, (filename, data),