Commits

seewind  committed b2abb17

fix:msgpack.loads(xx, use_list=1)

  • Participants
  • Parent commits 6059662

Comments (0)

Files changed (2)

File grpc/__init__.py

 from .rpc_shell import *
 
 
-VERSION = (0, 3, 7)
+VERSION = (0, 3, 8)
 __version__ = VERSION
 try:
     #warn:msgpack turn list to tuple
     from msgpack import loads, dumps, load, dump
+    loads = functools.partial(loads, use_list=1)
     #print 'use msgpack'
 except ImportError:
     from cPickle import loads, dumps, load, dump
 _addr_clients = WeakValueDictionary()
 def get_rpc_by_addr(addr, force_rpc=0):
     global _addr_clients, _my_servers_
+    addr = tuple(addr)
     if not force_rpc and addr in _my_servers_:
         svr = _my_servers_[addr]
         return svr