[Debian-olpc-devel] Bug#642600: python2.7 incompatible use of locale.format

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

Package: sugar-0.90
Version: 0.90.3-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:

this is present in two cases in sugar:
       return locale.format(_('%.0f KB'), size / 1024.0)
       return locale.format(_('%.1f MB'), size / 1024.0 / 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/debian-olpc-devel/attachments/20110924/27158fc5/attachment.pgp>

More information about the Debian-olpc-devel mailing list