diff options
author | Guido van Rossum <guido@python.org> | 2000-06-29 16:15:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-06-29 16:15:52 (GMT) |
commit | 26e89d01852a17d0d3aa48990667f52e87c77b0d (patch) | |
tree | 0982bcf2b7a2aa954182aef3ce4ea23a9142649b /Lib/pickle.py | |
parent | 270e19b060fc027c10d44a2f4941673b6165f419 (diff) | |
download | cpython-26e89d01852a17d0d3aa48990667f52e87c77b0d.zip cpython-26e89d01852a17d0d3aa48990667f52e87c77b0d.tar.gz cpython-26e89d01852a17d0d3aa48990667f52e87c77b0d.tar.bz2 |
Change string exceptions to class exceptions.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index ebfde4f..6c1bcbe 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -38,8 +38,9 @@ compatible_formats = ["1.0", "1.1", "1.2"] # Old format versions we can read mdumps = marshal.dumps mloads = marshal.loads -PicklingError = "pickle.PicklingError" -UnpicklingError = "pickle.UnpicklingError" +class PickleError(Exception): pass +class PicklingError(PickleError): pass +class UnpicklingError(PickleError): pass try: from org.python.core import PyStringMap |