Lines Matching refs:cPickle
1 import cPickle
49 self.dumps = cPickle.dumps
50 self.loads = cPickle.loads
52 error = cPickle.BadPickleGet
53 module = cPickle
54 bad_stack_errors = (cPickle.UnpicklingError,)
56 truncated_errors = (cPickle.UnpicklingError, EOFError,
64 p = cPickle.Unpickler(f)
69 error = cPickle.BadPickleGet
70 bad_stack_errors = (cPickle.UnpicklingError,)
72 truncated_errors = (cPickle.UnpicklingError, EOFError,
90 p = cPickle.Pickler(f, proto)
100 p = cPickle.Unpickler(f)
118 p = cPickle.Pickler(proto)
125 p = cPickle.Unpickler(f)
130 error = cPickle.BadPickleGet
147 p = cPickle.Pickler(f, proto)
158 p = cPickle.Unpickler(f)
199 pickler_class = cPickle.Pickler
200 unpickler_class = cPickle.Unpickler
206 return cPickle.dumps(arg, proto)
210 return cPickle.loads(buf)
225 self.assertRaises((AttributeError, RuntimeError), cPickle.dumps, n)
233 cPickle.dumps(res)