mirror of https://github.com/python/cpython.git
Fix a legacy raise statement in pickle's docs.
This commit is contained in:
parent
f6b8121255
commit
6fe2a6c21b
|
@ -592,7 +592,7 @@ Here's a silly example that *might* shed more light::
|
|||
value = int(persid.split()[2])
|
||||
return FancyInteger(value)
|
||||
else:
|
||||
raise pickle.UnpicklingError, 'Invalid persistent id'
|
||||
raise pickle.UnpicklingError('Invalid persistent id')
|
||||
|
||||
up.persistent_load = persistent_load
|
||||
|
||||
|
|
Loading…
Reference in New Issue