summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-08-07 16:27:24 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-08-07 16:27:24 (GMT)
commitdc54f2be3f718cdd5208894b0d763d62f43ea3a5 (patch)
tree3400592705109ce32d03af3cf81c56e26c2dfdbb /Lib
parentcbbee6fed5d5230fd407ebd9383c0ae4eb4578ad (diff)
downloadcpython-dc54f2be3f718cdd5208894b0d763d62f43ea3a5.zip
cpython-dc54f2be3f718cdd5208894b0d763d62f43ea3a5.tar.gz
cpython-dc54f2be3f718cdd5208894b0d763d62f43ea3a5.tar.bz2
Make 'bin' argument trigger DeprecationWarning
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pickle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 69fc2cc..7d6825f 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