I got the ovs Python code ported to Python 3 in a branch. I've been submitting the work in pieces to make it a bit easier to review, iterate on, and merge.
This series of patches addresses an assortment of Python 3 compatibility issues. This first patch is one that was submitted to the list a few months ago. One new dependency is introduced. The 'six' Python library becomes a requirement to aid in supporting both Python 2 and 3. More information about 'six' can be found here: https://pythonhosted.org/six/ Russell Bryant (8): python: Stop use of tuple parameter unpacking python: Fix exception handler compatibility. python: Fix print function compatibility. python: Fix xmlrpclib imports. python: Stop using xrange(). python: Convert dict iterators. python: Fix octal compatibility. python: Remove old style classes. Terry Wilson (1): python: Start fixing some Python 3 issues. INSTALL.md | 2 +- Makefile.am | 24 ++++++---- debian/ovs-monitor-ipsec | 22 +++++----- m4/openvswitch.m4 | 6 +++ ofproto/ipfix-gen-entities | 22 +++++----- python/build/nroff.py | 2 +- python/ovs/daemon.py | 31 ++++++------- python/ovs/db/data.py | 18 ++++---- python/ovs/db/idl.py | 44 ++++++++++--------- python/ovs/db/schema.py | 18 ++++---- python/ovs/fatal_signal.py | 2 +- python/ovs/json.py | 7 ++- python/ovs/ovsuuid.py | 4 +- python/ovs/poller.py | 4 +- python/ovs/socket_util.py | 36 +++++++-------- python/ovs/stream.py | 16 ++++--- python/ovs/unixctl/server.py | 2 + python/ovs/vlog.py | 11 +++-- python/ovstest/rpcserver.py | 9 ++-- python/ovstest/tests.py | 34 ++++++++------- python/ovstest/udp.py | 4 +- python/ovstest/util.py | 7 ++- python/setup.py | 2 +- tests/test-json.py | 6 ++- tests/test-jsonrpc.py | 4 +- tests/test-ovsdb.py | 51 ++++++++++++---------- tests/test-reconnect.py | 22 +++++----- tests/test-vlog.py | 3 +- utilities/ovs-pcap.in | 14 +++--- vtep/ovs-vtep | 22 +++++----- .../usr_share_openvswitch_scripts_ovs-xapi-sync | 11 ++--- 31 files changed, 262 insertions(+), 198 deletions(-) -- 2.5.0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev