[PATCH] Use a capital "B" in the size module (#859932).

Chris Lumens clumens at redhat.com
Thu Oct 11 18:45:31 UTC 2012


"b" means bits, which is definitely not what we want to display.
---
 pyanaconda/storage/size.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/storage/size.py b/pyanaconda/storage/size.py
index 5b531f1..65b3e20 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'), _('byte'), _('bytes')]
 _prefixes = _decimalPrefix + _binaryPrefix
 
 def _makeSpecs(prefix, abbr):
@@ -227,7 +227,7 @@ class Size(Decimal):
                             retval = "%s.%s" % (whole, fraction[:max_places])
 
                 if abbr:
-                    return retval + " " + abbr + _("b")
+                    return retval + " " + abbr + _("B")
                 else:
                     return retval + " " + prefix + P_("byte", "bytes", newcheck)
 
-- 
1.7.11.2



More information about the anaconda-patches mailing list