mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Change string exceptions to class exceptions.
This commit is contained in:
parent
270e19b060
commit
26e89d0185
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue