make btt scripts python3-ready
authorEric Sandeen <sandeen@redhat.com>
Wed, 28 Mar 2018 20:26:36 +0000 (15:26 -0500)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 May 2018 19:09:58 +0000 (13:09 -0600)
commit70d5ca2d5f3d6b97c11c641b7e0c5836983219a0
treecb700221fe983b09fc197006c4a4132247e73d1c
parentd61ff409cb4dda31386373d706ea0cfb1aaac5b7
make btt scripts python3-ready

Many distributions are moving to python3 by default.  Here's
an attempt to make the python scripts in blktrace python3-ready.

Most of this was done with automated tools.  I hand fixed some
space-vs tab issues, and cast an array index to integer.  It
passes rudimentary testing when run under python2.7 as well
as python3.

This doesn't do anything with the shebangs, it leaves them both
invoking whatever "env python" coughs up on the system.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
btt/bno_plot.py
btt/btt_plot.py