更新cPickle=>pickle

This commit is contained in:
msincenselee 2018-09-30 09:55:47 +08:00
parent 4655a1105d
commit 02edb869c2

View File

@ -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)
########################################################################