From 26e89d01852a17d0d3aa48990667f52e87c77b0d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 29 Jun 2000 16:15:52 +0000 Subject: Change string exceptions to class exceptions. --- Lib/pickle.py | 5 +++-- 1 file 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 -- cgit v0.12