[Yum-devel] [PATCH] Improve number formatting in CLI output.

James Antill james at fedoraproject.org
Wed Jan 6 13:52:14 UTC 2010

On Wed, 2010-01-06 at 13:07 +0200, Ville Skyttä wrote:
> Format zero as 0 instead of 0.0, make zero package sizes line up with
> others in transaction listings.

 Ok, first off: how do you get packages of size zero?

 Next, testing with:

from urlgrabber.progress import format_number

format_number(0)    '0 '
format_number(1)    '1 '
format_number(10)   '10 '
format_number(11)   '11 '
format_number(110)  '110 '
format_number(1100) '1.1 k'

...so it doesn't seem to just be zero that's broken. I'm pretty sure you
want to just remove the test for int's (converting everything to a

More information about the Yum-devel mailing list