[ovs-dev] [PATCH 6/6] python: Tighten the check if we need encoding
blp at ovn.org
Wed Apr 18 18:38:42 UTC 2018
On Wed, Apr 18, 2018 at 06:01:15PM +0200, Jakub Sitnicki wrote:
> Check if we are dealing with a Unicode string for Python 2 and we need
> to encode it before sending it, just as we do already for Python 3.
> Also, do the encoding the same way for Python 2 and 3 and avoid using
> negation to make the code simpler.
> Signed-off-by: Jakub Sitnicki <jkbs at redhat.com>
Thanks for the fix!
This provokes a new flake8 error on my system here:
../python/ovs/stream.py:388:42: F821 undefined name 'unicode'
More information about the dev