[ovs-dev] [PATCH v4] Remove Python 2 leftovers.

Ilya Maximets i.maximets at ovn.org
Tue Jun 22 20:46:48 UTC 2021


On 6/15/21 5:58 PM, Rosemarie O'Riorden wrote:
> Fixes: 1ca0323e7c29 ("Require Python 3 and remove support for Python 2.")
> Reported at: https://bugzilla.redhat.com/show_bug.cgi?id=1949875
> Signed-off-by: Rosemarie O'Riorden <roriorde at redhat.com>
> ---
> Version 2:
>   - Fixed import errors in v1.
>   - Removed lines that indicate compatibility with python 2.
> 
> Version 3:
>   - Fixed import errors and some files that were not covered in v2.
> 
> Version 4:
>   - Added missing new line that caused flake8-check to fail.
> 
>  ofproto/ipfix-gen-entities                    |  2 --
>  ovsdb/ovsdb-idlc.in                           |  1 -
>  .../ovs/compat/sortedcontainers/sortedlist.py |  2 --
>  python/ovstest/rpcserver.py                   | 14 ++--------
>  python/ovstest/tcp.py                         |  4 +--
>  python/ovstest/tests.py                       |  2 --
>  python/ovstest/util.py                        |  4 +--
>  python/ovstest/vswitch.py                     |  2 +-
>  python/setup.py                               |  4 ---
>  tests/test-jsonrpc.py                         |  2 --
>  utilities/checkpatch.py                       |  1 -
>  utilities/gdb/ovs_gdb.py                      |  1 -
>  utilities/ovs-l3ping.in                       | 14 +++++-----
>  utilities/ovs-parse-backtrace.in              | 12 ++++----
>  utilities/ovs-pcap.in                         |  4 +--
>  utilities/ovs-vlan-test.in                    | 28 +++++++++----------
>  16 files changed, 35 insertions(+), 62 deletions(-)
> 

Thanks!  There was one more import of print_function in
tests/test-reconnect.py.  I removed it and applied this
patch to master.  Also backported down to 2.13.

Best regards, Ilya Maximets.


More information about the dev mailing list