From: Collin Winter Date: Mon, 10 Sep 2007 00:20:05 +0000 (+0000) Subject: Fix a legacy raise statement in pickle's docs. X-Git-Tag: v3.0a2~413 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6fe2a6c21b4e0afae589da798e2392662fb140d7;p=thirdparty%2FPython%2Fcpython.git Fix a legacy raise statement in pickle's docs. --- diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst index dace18a3a972..9bbb1d3b7c68 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