python: Deal with str and byte differences.
authorRussell Bryant <russell@ovn.org>
Thu, 17 Dec 2015 14:45:58 +0000 (09:45 -0500)
committerRussell Bryant <russell@ovn.org>
Tue, 2 Feb 2016 21:43:35 +0000 (16:43 -0500)
commit0e7c46c44079d52365767f2cc77f2c56cce3ff2e
tree1f28f1e051d37cbdc5fb236efce00f5b3f6fa6b6
parentfbafc3c263c489f383a3aa568e1fad46f8bfeec7
python: Deal with str and byte differences.

Python 3 has separate types for strings and bytes.  Python 2 used the
same type for both.  We need to convert strings to bytes before writing
them out to a socket.  We also need to convert data read from the socket
to a string.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
python/ovs/jsonrpc.py
python/ovs/socket_util.py
python/ovs/stream.py