From: Andrew M. Kuchling Date: Sat, 7 Aug 2004 16:27:24 +0000 (+0000) Subject: Make 'bin' argument trigger DeprecationWarning X-Git-Tag: v2.4a3~372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc54f2be3f718cdd5208894b0d763d62f43ea3a5;p=python Make 'bin' argument trigger DeprecationWarning --- diff --git a/Lib/pickle.py b/Lib/pickle.py index 69fc2ccaf7..7d6825fb0b 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -199,7 +199,7 @@ class Pickler: raise ValueError, "can't specify both 'protocol' and 'bin'" if bin is not None: warnings.warn("The 'bin' argument to Pickler() is deprecated", - PendingDeprecationWarning) + DeprecationWarning) protocol = bin if protocol is None: protocol = 0