Bug#642601: python2.7 incompatible use of locale.format

Julian Taylor jtaylor.debian at googlemail.com
Sat Sep 24 11:27:27 UTC 2011


Package: update-manager
Version: 0.200.5-1
Severity: important
User: debian-python at lists.debian.org
Usertags: python2.7

no trailing text is allowed in locale.format() in python2.7 anymore, see:
http://bugs.python.org/issue10379

this is present in two cases in update-manager:
update-manager-core/unpacked/usr/share/pyshared/UpdateManager/Util/humanize.py:44:
       return locale.format(_("%.0f KB"), float(num_bytes)/1024)
update-manager-core/unpacked/usr/share/pyshared/UpdateManager/Util/humanize.py:47:
       return locale.format(_("%.1f MB"), float(num_bytes) / 1024 / 1024)

One can fix it by replacing locale.format with locale.format_string.
As Debian is transitioning to python2.7 in near future this should get
resolved soon.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20110924/13e91528/attachment.pgp>


More information about the pkg-gnome-maintainers mailing list