[ovs-git] [openvswitch/ovs] 28058c: python: Tighten the check if we need encoding

GitHub noreply at github.com
Thu Apr 19 16:28:08 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 28058c298b05597fe45394fe16915e265b8b4d97
      https://github.com/openvswitch/ovs/commit/28058c298b05597fe45394fe16915e265b8b4d97
  Author: Jakub Sitnicki <jkbs at redhat.com>
  Date:   2018-04-19 (Thu, 19 Apr 2018)

  Changed paths:
    M python/ovs/stream.py

  Log Message:
  -----------
  python: Tighten the check if we need encoding

Check if we are dealing with a Unicode string that needs
encoding for both Python 2 & 3.

Also, do the encoding the same way for Python 2 & 3 and avoid using
negation to make the code simpler.

Signed-off-by: Jakub Sitnicki <jkbs at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list