Change string exceptions to class exceptions.

This commit is contained in:
Guido van Rossum 2000-06-29 16:15:52 +00:00
parent 270e19b060
commit 26e89d0185

View file

@ -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