[ovs-git] [openvswitch/ovs] 28b4f6: python: Update Python version checks.

GitHub noreply at github.com
Fri Apr 15 20:53:56 UTC 2016

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 28b4f69ba26d2178247563288c9397ca9f9766d8
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-04-15 (Fri, 15 Apr 2016)

  Changed paths:
    M python/ovs/socket_util.py
    M python/ovs/stream.py
    M tests/test-json.py

  Log Message:
  python: Update Python version checks.

Instead of checking the raw version, use the six.PY2 and six.PY3 helpers
to determine if Python 2 or Python 3 are in use.

In one case, the check was to determine if the Python version was >=
2.6.  We now only support >= 2.7, so this check would always be true.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>
Acked-by: Miguel Angel Ajo <majopela at redhat.com>

More information about the git mailing list