更新cPickle=>pickle
This commit is contained in:
parent
4655a1105d
commit
02edb869c2
@ -8,7 +8,7 @@ import zmq
|
||||
from msgpack import packb, unpackb
|
||||
from json import dumps, loads
|
||||
|
||||
import cPickle
|
||||
import pickle as cPickle
|
||||
pDumps = cPickle.dumps
|
||||
pLoads = cPickle.loads
|
||||
|
||||
@ -307,7 +307,7 @@ class RpcClient(RpcObject):
|
||||
topic = ''
|
||||
else:
|
||||
topic = topic.encode('utf-8')
|
||||
self.__socketSUB.setsockopt(zmq.SUBSCRIBE, topic)
|
||||
self.__socketSUB.setsockopt_string(zmq.SUBSCRIBE, topic)
|
||||
|
||||
|
||||
########################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user