[pypy-svn] r10176 - pypy/dist/pypy/lib

ac at codespeak.net ac at codespeak.net
Wed Mar 30 16:01:19 CEST 2005


Author: ac
Date: Wed Mar 30 16:01:19 2005
New Revision: 10176

Modified:
   pypy/dist/pypy/lib/cPickle.py
Log:
Fix missing sattributes of cPickle.

Modified: pypy/dist/pypy/lib/cPickle.py
==============================================================================
--- pypy/dist/pypy/lib/cPickle.py	(original)
+++ pypy/dist/pypy/lib/cPickle.py	Wed Mar 30 16:01:19 2005
@@ -3,4 +3,16 @@
 #
 
 from pickle import *
-from pickle import __doc__
+from pickle import __doc__, __version__, format_version, compatible_formats
+
+class UnpickleableError(PicklingError):
+    def __init__(self, *args):
+        self.args=args
+
+    def __str__(self):
+        a=self.args
+        a=a and type(a[0]) or '(what)'
+        return 'Cannot pickle %s objects' % a
+
+class BadPickleGet(UnpicklingError):
+    pass



More information about the Pypy-commit mailing list