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.
The following fix to specify the encoding to msgpack.Packer/Unpacker
and enable to use Binary type when packing for the Python 3
compatibility.

Also, the following patches include some improvements for wsgi.py
in the Pylint checks.

Note: This patch suppose to be merged after the patch "[RFC] [PATCH 0/2]
contrib: Remove embedded external projects".

IWASE Yusuke (8):
  protocols/bgp/base: Add missing __next__ method
  contrib: Revert module path to ryu.contrib
  wsgi: Use six.text_type instead of unicode
  wsgi: Reduce pylint warnings
  wsgi: Avoid using inspect.getargspec
  test_rpc: Use numbers.Integral instead of long type
  RPC: Specify encoding to msgpack.Packer/Unpacker
  docker_base: Add missing requirements for test-requires

 ryu/app/wsgi.py                            |  51 ++++-----
 ryu/cmd/manager.py                         |  12 +--
 ryu/cmd/of_config_cli.py                   |   9 +-
 ryu/cmd/rpc_cli.py                         |   6 +-
 ryu/cmd/ryu_base.py                        |   8 +-
 ryu/lib/of_config/__init__.py              |   5 +-
 ryu/lib/rpc.py                             |  20 ++--
 ryu/services/protocols/bgp/base.py         |   3 +
 ryu/services/protocols/bgp/net_ctrl.py     |   8 +-
 ryu/tests/integrated/common/docker_base.py |  23 ++--
 ryu/tests/unit/lib/test_rpc.py             | 163 ++++++++++++-----------------
 11 files changed, 128 insertions(+), 180 deletions(-)

-- 
2.7.4


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to