[blivet:master 15/20] Use convertTo in humanReadable().
mulhern
amulhern at redhat.com
Tue Dec 23 23:42:28 UTC 2014
It's equivalent and the value that is desired.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/size.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/size.py b/blivet/size.py
index 2275b22..1133508 100644
--- a/blivet/size.py
+++ b/blivet/size.py
@@ -352,7 +352,7 @@ class Size(Decimal):
# requirement use the largest prefix.
limit = _BINARY_FACTOR * min_value
for unit in [_EMPTY_PREFIX] + _BINARY_PREFIXES:
- newcheck = super(Size, self).__div__(Decimal(unit.factor))
+ newcheck = self.convertTo(unit)
if abs(newcheck) < limit:
break
--
1.9.3
More information about the anaconda-patches
mailing list