[Blends-commit] [SCM] website branch, master, updated. 1bc06676f66579fdbad9c099022f1d2ad495b00a
Ole Streicher
ole at aip.de
Thu Mar 17 16:02:47 UTC 2016
The following commit has been merged in the master branch:
commit dd1fe53e85e9f434170873d2d5e754e974fd9016
Author: Ole Streicher <ole at aip.de>
Date: Thu Mar 17 14:09:54 2016 +0100
Remove UnicodeEncodeError from new_upstream.py: not needed anymore
diff --git a/webtools/new_upstream.py b/webtools/new_upstream.py
index bb483ef..4b89b9a 100755
--- a/webtools/new_upstream.py
+++ b/webtools/new_upstream.py
@@ -25,26 +25,7 @@ for task in packages.keys():
printstring = "\t%s:\n\t\tHighest version in Debian is %s\n\t\tUpstream has %s\n\t\tMaintainer is %s" % (pkg_v_o[0])
if pkg_v_o[1]:
printstring = printstring + "\n\t\tLast uploader was " + pkg_v_o[1]
- try:
- print(printstring)
- except UnicodeEncodeError as err:
- print("\t%s: (Problem printing UTF-8 data)\n\t\tHighest version in Debian is %s\n\t\tUpstream has %s\n" %
- (pkg_v_o[0][0], pkg_v_o[0][1], pkg_v_o[0][2]))
- try:
- print("type(pkg_v_o[0][3]) = %s\n" % type(pkg_v_o[0][3]).__name__)
- print("type(pkg_v_o[1]) = %s\n" % type(pkg_v_o[1]).__name__)
- # maintainerfield of package gnudatalanguage which is
- # Gürkan Sengün <gurkan at phys.ethz.ch>
- # breaks print for some reason I do not understand because everything should be UTF-8
- # error is: 'ascii' codec can't encode character u'\xfc' in position 104: ordinal not in range(128)
- # just stick to the e-mail address to do something useful ...
- print_wo_maintainer = pkg_v_o[0][3][0] # re.sub('^.+(<.+ at .+>.*)', '\\1', pkg_v_o[0][3])
- print("\t\tMaintainer is ... %s\n" % print_wo_maintainer)
- # print print_wo_maintainer[0:80]
- if pkg_v_o[1]:
- printstring = printstring + "\n\t\tLast uploader was " + pkg_v_o[1]
- except:
- pass
+ print(printstring)
# Perhaps we should also send a mail to pts at qa.debian.org
# keyword %(pkg) %(list) = bts bts-control upload-source katie-other summary default cvs ddtp derivatives contact
--
Static and dynamic websites for Debian Pure Blends
More information about the Blends-commit
mailing list