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
tree: cde2e871628cbe51e466107719cd37e4886dca6a
  1. devicetree/
  2. net/
  3. Android.bp
  4. METADATA