[blivet:master+? 0/5] More work on blivet.size (v2)

mulhern amulhern at redhat.com
Fri Oct 24 18:39:36 UTC 2014


The first is unchanged from previous.

When rewriting _parseSpec() tried to follow the following rule.
1) If the spec asks for decimal units explicitly and completely, give that.
2) If the spec is at all partial, assume that means binary units, and the
only problem is to distinguish which binary units.

Tried to invoke second rule on both translated and untranslated specs.

mulhern (5):
  Use b"", not u"", for _EMPTY_PREFIX.
  Make _lowerASCII() python 3 compatible and add a method header.
  Rewrite _parseSpec() and convertTo()
  Add xlate parameter to humanReadable().
  Add a number of new tests.

 blivet/size.py     | 205 +++++++++++++++++++++++++++--------------------------
 tests/size_test.py |  98 +++++++++++++++++++++----
 2 files changed, 192 insertions(+), 111 deletions(-)

-- 
1.9.3



More information about the anaconda-patches mailing list