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

Changed libglade TARBALL to .tar.bz2.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Nov 03 06:22:15 2010 +0000 (2010-11-03)
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.