summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/pickle.py5
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