Python style/portability fix
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 10 Jan 2017 17:39:47 +0000 (02:39 +0900)
committerJens Axboe <axboe@fb.com>
Tue, 10 Jan 2017 20:20:30 +0000 (13:20 -0700)
commit9bae252254d0ce37a144cb4c8d2cb4222d539a9e
tree597a7c6b29241c18a095e1c82385919322b53d39
parent88d398d07f39ca6870fb2a3fcfa44aa80d93f278
Python style/portability fix

In practice, one would normally explicitly derive a class from
object class (was called new-style class back then).
https://docs.python.org/release/2.5.2/ref/node33.html
https://wiki.python.org/moin/NewClassVsClassicClass

print needs parentheses for portability with Python3.x.

xrange() only exists in Python2.x (i.e. breaks on Python3.x).
Using range() (which pre-allocates a whole list in Python2.x)
won't be a problem unless len(averages) is huge enough to give
any pressure to vm subsystem.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
tools/fiologparser.py