wok view singularity/stuff/percents-0.30b.patch @ rev 10677

rocrail: fix $stuff and clean-up
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 27 11:25:55 2011 +0200 (2011-05-27)
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.