[PATCH] Add "b" back in as a possible valid size specifier (#866115).

David Lehman dlehman at redhat.com
Tue Oct 16 15:22:00 UTC 2012


On Tue, 2012-10-16 at 10:06 -0400, Chris Lumens wrote:
> ---
>  pyanaconda/storage/size.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks okay to me, but this is one of the areas where changes make me
nervous.

> 
> diff --git a/pyanaconda/storage/size.py b/pyanaconda/storage/size.py
> index a8da321..b045536 100644
> --- a/pyanaconda/storage/size.py
> +++ b/pyanaconda/storage/size.py
> @@ -53,7 +53,7 @@ _binaryPrefix = [(1024, _("kibi"), _("Ki")),
>                   (1024**7, _("zebi"), None),
>                   (1024**8, _("yobi"), None)]
>  
> -_bytes = [_('B'), _('byte'), _('bytes')]
> +_bytes = [_('B'), _("b"), _('byte'), _('bytes')]
>  _prefixes = _decimalPrefix + _binaryPrefix
>  
>  def _makeSpecs(prefix, abbr):




More information about the anaconda-patches mailing list