[blivet:master 0/4] size.py related patches (v2)
mulhern
amulhern at redhat.com
Wed Oct 1 13:17:27 UTC 2014
Now using UPPER_CASE for all constants in file and insisting that
Python do a little bit more of the computation and the programmer a little
bit less.
Otherwise, no real change, just a reordering of actions.
mulhern (4):
Use UPPER_CASE for constants
Use named constants for binary and decimal factors.
Factor out commonalities in xlated_*_prefix() methods.
Rewrite of Size.humanReadable() method
blivet/size.py | 194 ++++++++++++++++++++++++++++-------------------------
tests/size_test.py | 64 ++++++++++++++++--
2 files changed, 163 insertions(+), 95 deletions(-)
--
1.9.3
More information about the anaconda-patches
mailing list