def read(self, inp):
     string = inp.read_string()
     obj = cPickle.loads(string.encode())
     try:
         obj.source = "GLOBAL"
     except AttributeError:
         pass
     return obj
Example #2
0
 def read(self, inp):
     utf = inp.read_utf()
     obj = cPickle.loads(utf.encode())
     try:
         obj.source = "GLOBAL"
     except AttributeError:
         pass
     return obj
Example #3
0
 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
Example #5
0
 def read(self, inp):
     string = inp.read_string()
     obj = cPickle.loads(string.encode())
     return obj