wok-stable view singularity/stuff/percents-0.30b.patch @ rev 8080
Add: xorg-makedepend 1.0.3
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Jan 22 03:25:18 2011 +0100 (2011-01-22) |
parents | |
children |
line source
1 --- singularity-0.30b/code/g.py
2 +++ singularity-0.30b/code/g.py
3 @@ -265,9 +265,9 @@
4 def to_percent(raw_percent, show_full = False):
5 locale_name, encoding = locale.getlocale()
6 if raw_percent % 100 != 0 or show_full:
7 - return locale.format("%.2f%%", raw_percent / 100.).decode(encoding)
8 + return locale.format("%.2f", raw_percent / 100.).decode(encoding)
9 else:
10 - return locale.format("%d%%", raw_percent // 100).decode(encoding)
11 + return locale.format("%d", raw_percent // 100).decode(encoding)
13 # nearest_percent takes values in the internal representation and modifies
14 # them so that they only represent the nearest percentage.