From 6fe2a6c21b4e0afae589da798e2392662fb140d7 Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Mon, 10 Sep 2007 00:20:05 +0000 Subject: Fix a legacy raise statement in pickle's docs. --- Doc/library/pickle.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst index dace18a..9bbb1d3 100644 --- a/Doc/library/pickle.rst +++ b/Doc/library/pickle.rst @@ -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 -- cgit v0.12