[PATCH] Don't uppercase the size values in the disk shopping cart.

Chris Lumens clumens at redhat.com
Fri May 30 14:57:41 UTC 2014


"16 GIB" looks weird.  Also get rid of all the unnecessary conversion between
Size and long and Size again.
---
 pyanaconda/ui/gui/spokes/lib/cart.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/lib/cart.py b/pyanaconda/ui/gui/spokes/lib/cart.py
index 90b9818..5252025 100644
--- a/pyanaconda/ui/gui/spokes/lib/cart.py
+++ b/pyanaconda/ui/gui/spokes/lib/cart.py
@@ -120,15 +120,15 @@ class SelectedDisksDialog(GUIObject):
 
     def _update_summary(self):
         count = 0
-        size = 0
-        free = 0
+        size = Size(0)
+        free = Size(0)
         for row in self._store:
             count += 1
             size += Size(row[SIZE_COL])
             free += Size(row[FREE_SPACE_COL])
 
-        size = str(Size(long(size))).upper()
-        free = str(Size(long(free))).upper()
+        size = str(size)
+        free = str(free)
 
         # pylint: disable=unescaped-markup
         text = P_("<b>%(count)d disk; %(size)s capacity; %(free)s free space</b> "
-- 
1.9.0



More information about the anaconda-patches mailing list