]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
Allow T (terabytes), P (petabytes), and E (exabytes), case-insensitive, in parse_abbr...
authorDavid-Sarah Hopwood <david-sarah@jacaranda.org>
Thu, 27 Dec 2012 20:08:00 +0000 (20:08 +0000)
committerDavid-Sarah Hopwood <david-sarah@jacaranda.org>
Thu, 27 Dec 2012 20:08:00 +0000 (20:08 +0000)
commit6d2ca45c4a75d55feba2fb96f2957eb86bfe9d7d
tree24f3dd3e535241242cef8946e7095c56bbcb844f
parent5c4ca677e1092b0c630f8229bce78a6f4a67906b
Allow T (terabytes), P (petabytes), and E (exabytes), case-insensitive, in parse_abbreviated_size.
This also simplifies how case-insensitivity is handled, and fixes a corner case
where the wrong exception was raised when the size ends in "BB".
fixes #1812

Signed-off-by: David-Sarah Hopwood <davidsarah@mint>
src/allmydata/test/test_util.py
src/allmydata/util/abbreviate.py