Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6fe2a6c

Browse files
committed
Fix a legacy raise statement in pickle's docs.
1 parent f6b8121 commit 6fe2a6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/pickle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ Here's a silly example that *might* shed more light::
592592
value = int(persid.split()[2])
593593
return FancyInteger(value)
594594
else:
595-
raise pickle.UnpicklingError, 'Invalid persistent id'
595+
raise pickle.UnpicklingError('Invalid persistent id')
596596

597597
up.persistent_load = persistent_load
598598

0 commit comments

Comments
 (0)