wok view singularity/stuff/percents-0.30b.patch @ rev 7618
Up: php to 5.2.15. Will need to updated 5.3.x soon since this is the last 5.2.x update.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Dec 12 08:13:09 2010 +0000 (2010-12-12) |
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.