Kaydet (Commit) 26e89d01 authored tarafından Guido van Rossum's avatar Guido van Rossum

Change string exceptions to class exceptions.

üst 270e19b0
...@@ -38,8 +38,9 @@ compatible_formats = ["1.0", "1.1", "1.2"] # Old format versions we can read ...@@ -38,8 +38,9 @@ compatible_formats = ["1.0", "1.1", "1.2"] # Old format versions we can read
mdumps = marshal.dumps mdumps = marshal.dumps
mloads = marshal.loads mloads = marshal.loads
PicklingError = "pickle.PicklingError" class PickleError(Exception): pass
UnpicklingError = "pickle.UnpicklingError" class PicklingError(PickleError): pass
class UnpicklingError(PickleError): pass
try: try:
from org.python.core import PyStringMap from org.python.core import PyStringMap
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment