Re: [ovs-dev] [PATCH 11/11] python: Deal with str and byte differences.

2016-02-02 Thread Russell Bryant
On 02/02/2016 04:34 PM, Russell Bryant wrote: > On 02/02/2016 04:24 PM, Ben Pfaff wrote: >> On Fri, Jan 22, 2016 at 09:32:33PM -0500, Russell Bryant wrote: >>> 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 w

Re: [ovs-dev] [PATCH 11/11] python: Deal with str and byte differences.

2016-02-02 Thread Russell Bryant
On 02/02/2016 04:24 PM, Ben Pfaff wrote: > On Fri, Jan 22, 2016 at 09:32:33PM -0500, Russell Bryant wrote: >> 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 co

Re: [ovs-dev] [PATCH 11/11] python: Deal with str and byte differences.

2016-02-02 Thread Ben Pfaff
On Fri, Jan 22, 2016 at 09:32:33PM -0500, Russell Bryant wrote: > 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.

[ovs-dev] [PATCH 11/11] python: Deal with str and byte differences.

2016-01-22 Thread Russell Bryant
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 --- python/ovs/jsonrpc.py | 10 +++