]> git.proxmox.com Git - mirror_ovs.git/commit
ovs-tcpundump: Fix incompatibilities with python3
authorTimothy Redaelli <tredaelli@redhat.com>
Tue, 24 Jul 2018 16:35:22 +0000 (18:35 +0200)
committerBen Pfaff <blp@ovn.org>
Tue, 24 Jul 2018 23:00:48 +0000 (16:00 -0700)
commit227abb77d3d1cf0252af6e78b0a2988b94318a02
tree2a7e267c1e94416ef09b8e660b4a68dc738d11a5
parent7a2ce387d8174b4b57133eb1f3689aa833e911c5
ovs-tcpundump: Fix incompatibilities with python3

Added parenthesis after print and use "as" instead of "," in except.

This commit fixes also a couple of flake8 warnings:

    utilities/ovs-tcpundump:23:1: E302 expected 2 blank lines, found 1
    utilities/ovs-tcpundump:35:1: E305 expected 2 blank lines after class or
    function definition, found 1

Tested on Python 2.7.15 and Python 3.6.5

Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
utilities/ovs-tcpundump.in