Commit e3fb4a2d authored by Actionless Loveless's avatar Actionless Loveless Committed by chrysn

fix setup.py for python3

parent a143cf67
......@@ -134,11 +134,11 @@ class update_translator_credits(NoOptionCommand):
contributions.update(TRANSLATORS_OVERRIDES)
print "====================== for screenlayout/meta.py ================"
print
print "TRANSLATORS = [\n " + ",\n ".join("'%s'"%c for c in sorted(contributions)) + "\n ]"
print
print
print("====================== for screenlayout/meta.py ================")
print()
print("TRANSLATORS = [\n " + ",\n ".join("'%s'"%c for c in sorted(contributions)) + "\n ]")
print()
print()
by_language_set = {}
for name, languages in contributions.items():
......@@ -170,24 +170,24 @@ class update_translator_credits(NoOptionCommand):
else:
return lang
print "====================== for README ================"
print
print "\n".join(sorted("* %s (%s)"%(", ".join(strip_address(c) for c in sorted(contributors)), ", ".join(sorted(language2name(l).encode('utf8') for l in languages))) for (languages, contributors) in by_language_set.items()))
print
print("====================== for README ================")
print()
print("\n".join(sorted("* %s (%s)"%(", ".join(strip_address(c) for c in sorted(contributors)), ", ".join(sorted(language2name(l).encode('utf8') for l in languages))) for (languages, contributors) in by_language_set.items())))
print()
by_language = {}
for name, languages in contributions.items():
for l in languages:
by_language.setdefault(l, set()).add(name)
print "====================== for debian/copyright ================"
print
print("====================== for debian/copyright ================")
print()
for l, names in sorted(by_language.items()):
print "Files: data/po/%s.po"%l
print "Copyright: 2008-%s, chrysn <chrysn@fsfe.org>"%datetime.datetime.now().year
print("Files: data/po/%s.po"%l)
print("Copyright: 2008-%s, chrysn <chrysn@fsfe.org>"%datetime.datetime.now().year)
for n in sorted(names):
print " %s"%n
print "License: GPL-3+"
print
print(" %s"%n)
print("License: GPL-3+")
print()
class build(_build):
sub_commands = _build.sub_commands + [('build_trans', None), ('build_man', None)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment