diff options
author | Joe Stringer <joe@ovn.org> | 2016-05-23 18:11:03 -0700 |
---|---|---|
committer | Joe Stringer <joe@ovn.org> | 2016-05-31 14:27:50 -0700 |
commit | 7d8eadce4df70f563a0c0123c612f6117c8ff864 (patch) | |
tree | 5aaf4e10d39f4d8bf3425db93714329bd010daac /utilities | |
parent | ff261703821658243bba13c80311130d036eeb52 (diff) | |
download | openvswitch-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-x | utilities/ovs-pcap.in | 2 |
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)) |