mirror of
https://github.com/python/cpython.git
synced 2026-01-08 08:22:41 +00:00
Fix a legacy raise statement in pickle's docs.
This commit is contained in:
parent
f6b8121255
commit
6fe2a6c21b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue