From dc54f2be3f718cdd5208894b0d763d62f43ea3a5 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 7 Aug 2004 16:27:24 +0000 Subject: [PATCH] Make 'bin' argument trigger DeprecationWarning --- Lib/pickle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1