[PATCH 2/3] Make humanReadable size use binary prefixes and nicer units

Vratislav Podzimek vpodzime at redhat.com
Tue Apr 22 12:59:14 UTC 2014


On Thu, 2014-04-17 at 15:39 +0200, Martin Kolman wrote:
> >  
> >  _ASCIIlower_table = string.maketrans(string.ascii_uppercase, string.ascii_lowercase)
> >  def _lowerASCII(s):
> > @@ -176,9 +183,9 @@ class Size(Decimal):
> >              but not both.  The bytes parameter is a numerical value for
> >              the size this object represents, in bytes.  The spec parameter
> >              is a string specification of the size using any of the size
> > -            specifiers in the _decimalPrefix or _binaryPrefix lists combined
> > -            with a 'b' or 'B'.  For example, to specify 640 kilobytes, you
> > -            could pass any of these parameter:
> > +            specifiers in the _decimalPrefixes or _binaryPrefixes lists combined
> > +            with a 'b' or 'B'.  For example, to specify 640 kilobytes, you could
> > +            pass any of these parameter:
>                                 ^^^^^^^^^
>                                 parameters ?
Good point, fixed locally.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list