=== modified file 'bin/tiny_socket.py' (properties changed: -x to +x) --- bin/tiny_socket.py 2010-01-12 09:24:17 +0000 +++ bin/tiny_socket.py 2010-12-09 12:19:46 +0000 @@ -21,6 +21,7 @@ import socket import cPickle +import cStringIO import sys import options @@ -84,7 +85,12 @@ size = int(read(self.sock, 8)) buf = read(self.sock, 1) exception = buf != '0' and buf or False - res = cPickle.loads(read(self.sock, size)) + + msg = read(self.sock, size) + msgio = cStringIO.StringIO(msg) + unpickler = cPickle.Unpickler(msgio) + unpickler.find_global = None + res = unpickler.load() if isinstance(res[0],Exception): if exception: