----- Original Message -----
From: "David Lehman" <dlehman(a)redhat.com>
To: anaconda-patches(a)lists.fedorahosted.org
Sent: Friday, December 20, 2013 12:59:55 PM
Subject: [PATCH 2/6] Prefer binary prefixes since everything is really based on them.
---
blivet/size.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blivet/size.py b/blivet/size.py
index adc5f58..aaa3062 100644
--- a/blivet/size.py
+++ b/blivet/size.py
@@ -50,8 +50,8 @@ _binaryPrefix = [(1024, N_("kibi"), N_("Ki")),
(1024**7, N_("zebi"), N_("Zi")),
(1024**8, N_("yobi"), N_("Yi"))]
-_bytes = [N_('b'), N_('byte'), N_('bytes')]
-_prefixes = _decimalPrefix + _binaryPrefix
+_bytes = [N_('B'), N_('b'), N_('byte'), N_('bytes')]
+_prefixes = _binaryPrefix + _decimalPrefix
def _makeSpecs(prefix, abbr, xlate):
""" Internal method used to generate a list of specifiers.
"""
--
1.8.1.4
size_test.SizeTestCase.testHumanReadable will need to be fixed up, otherwise, Ack.
- mulhern
_______________________________________________
anaconda-patches mailing list
anaconda-patches(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches