1af384fa17
Currently, RPC requests using rpc_cli.py will crash on Python 3, because the decoded string through msgpack-rpc is not str type when the default encoding is not specified into msgpack.Unpacker. On Python 2, bytes type is the same as str type, and this problem does not occur. The old spec of msgpack had no notation of the encoding, but now, msgpack defines "UTF-8" as the default encoding and has the explicit type definitions for String and Binary. https://github.com/msgpack/msgpack/blob/master/spec.md This patch fixes to specify the encoding to msgpack.Packer/Unpacker and enable to use Binary type when packing for the Python 3 compatibility. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> |
||
---|---|---|
.. | ||
app | ||
base | ||
cmd | ||
contrib | ||
controller | ||
lib | ||
ofproto | ||
services | ||
tests | ||
topology | ||
__init__.py | ||
cfg.py | ||
exception.py | ||
flags.py | ||
hooks.py | ||
log.py | ||
utils.py |