def read(self, inp): string = inp.read_string() obj = cPickle.loads(string.encode()) try: obj.source = "GLOBAL" except AttributeError: pass return obj
def read(self, inp): utf = inp.read_utf() obj = cPickle.loads(utf.encode()) try: obj.source = "GLOBAL" except AttributeError: pass return obj
def read(self, inp): str = inp.read_string().encode() return cPickle.loads(str)
def read(self, inp): utf = inp.read_utf() obj = cPickle.loads(utf.encode()) return obj
def read(self, inp): string = inp.read_string() obj = cPickle.loads(string.encode()) return obj