Package: singularity
Version: 0.30b-1
Severity: important
User: debian-pyt...@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 singularity:
code/g.py:254:    locale_test = locale.format("%01.1f",
0.1).decode(encoding)
code/g.py:268:        return locale.format("%.2f%%", raw_percent /
100.).decode(encoding)
code/g.py:270:        return locale.format("%d%%", raw_percent //
100).decode(encoding)

This apparently causes this bug:
https://bugs.launchpad.net/ubuntu/+source/singularity/+bug/576504

One can fix it in 2.7 by replacing locale.format with locale.format_string.
Unfortunately this change will not work in python2.6
Debian will transition to python2.7 default soon, so this issue should
be resolved.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to