wok view singularity/stuff/percents-0.30b.patch @ rev 9595
Add gens-gs back in. It was fixed.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Apr 12 16:24:21 2011 +0000 (2011-04-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.