net-test: be more compatible with python3
Conversions are primarily:
print ... -> print(...)
xrange(...) -> range(...)
assertEquals(...) -> assertEqual(...)
except t, e -> except t as e
"\x00" -> b"\x00"
iteritems() -> items()
Plus:
sprinkle in some list()'s around a few things
and a few other minor things
Test: tested on ACK5.4 with 32 and 64-bit x86 uml
which proves this continues to work with the uml image's embedded python2
Bug: 158494111
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I89dffc575293c1768eacdc6f1bce2bee4095c590
30 files changed