Futurize `mtstat` as much as possible
Downloading files now works on Python 2.7 again, though other things
still seem broken with various errors (though I'm not sure if they were
there before). I gave up on Python 3 compatibility, as the encoding
situation is just too confusing. (Reports are downloaded using the
`stubby` command, then extracted from its text proto output with
regexes, and then have to be turned back into binary again to be treated
as ZIP files. https://stackoverflow.com/a/24519338/1175455 is just a
taste of the problem.)
TEST=Run `python2.7 mtstat.py -d 10`, and check it succeeds. Some
invalid reports are to be expected.
BUG=none
Change-Id: Ia0eec0598f0ee8ab1ce203c370cc9748af4ab65d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/mttools/+/2044826
Tested-by: Harry Cutts <hcutts@chromium.org>
Reviewed-by: Sean O'Brien <seobrien@chromium.org>
Commit-Queue: Harry Cutts <hcutts@chromium.org>
7 files changed