Use Pickle protocol 2 for issue84
This commit is contained in:
1 parent
df26f50ba7
commit
7cd1067634
1 file changed
+1
-1
+1
-1
@@ -116,7 +116,7 @@ class PySocket:
|
||||
self.ssl_sock = socket.ssl(self.sock)
|
||||
|
||||
def send(self, msg, exception=False, traceback=None):
|
||||
msg = cPickle.dumps([msg, traceback])
|
||||
msg = cPickle.dumps([msg, traceback], protocol=2)
|
||||
size = len(msg)
|
||||
if self.ssl:
|
||||
self.ssl_sock.write('%8d' % size)
|
||||
|
||||
Reference in new issue
Block a user