bpf: Add Python 3 support to selftests scripts for bpf
authorJeremy Cline <jcline@redhat.com>
Tue, 24 Jul 2018 19:53:34 +0000 (15:53 -0400)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 25 Jul 2018 05:46:48 +0000 (07:46 +0200)
commite66565f3bee141748d2c3b2ed0d4ecd455f634fa
tree1c93844b2b0a9d4d06bcd36f6ef7acb6e087ebb2
parent2cc512c1fa1ee99879d55d1cb4e3fd0e6eab35b3
bpf: Add Python 3 support to selftests scripts for bpf

Adjust tcp_client.py and tcp_server.py to work with Python 3 by using
the print function, marking string literals as bytes, and using the
newer exception syntax. This should be functionally equivalent and
supports Python 3+.

Signed-off-by: Jeremy Cline <jcline@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/tcp_client.py
tools/testing/selftests/bpf/tcp_server.py