Fix a legacy raise statement in pickle's docs.

This commit is contained in:
Collin Winter 2007-09-10 00:20:05 +00:00
parent f6b8121255
commit 6fe2a6c21b
1 changed files with 1 additions and 1 deletions

View File

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