summaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
authorJoe Stringer <joe@ovn.org>2016-05-23 18:11:03 -0700
committerJoe Stringer <joe@ovn.org>2016-05-31 14:27:50 -0700
commit7d8eadce4df70f563a0c0123c612f6117c8ff864 (patch)
tree5aaf4e10d39f4d8bf3425db93714329bd010daac /utilities
parentff261703821658243bba13c80311130d036eeb52 (diff)
downloadopenvswitch-7d8eadce4df70f563a0c0123c612f6117c8ff864.tar.gz
ovs-vtep: Make compatible with python2.7 and 3.
Translate commandline calls to UTF-8, appease flake8 and use six's integer types. This allows the testsuite to pass when using python3 as your default system python version. Signed-off-by: Joe Stringer <joe@ovn.org> Tested-by: Darrell Ball <dlu998@gmail.com>
Diffstat (limited to 'utilities')
-rwxr-xr-xutilities/ovs-pcap.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/ovs-pcap.in b/utilities/ovs-pcap.in
index 98b8d53e3..2e9197d15 100755
--- a/utilities/ovs-pcap.in
+++ b/utilities/ovs-pcap.in
@@ -98,7 +98,7 @@ if __name__ == "__main__":
if packet is None:
break
- print(binascii.hexlify(packet))
+ print(binascii.hexlify(packet).decode().strip())
except PcapException as e:
sys.stderr.write("%s: %s\n" % (argv0, e))