diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-08-07 16:27:24 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-08-07 16:27:24 (GMT) |
commit | dc54f2be3f718cdd5208894b0d763d62f43ea3a5 (patch) | |
tree | 3400592705109ce32d03af3cf81c56e26c2dfdbb /Lib/pickle.py | |
parent | cbbee6fed5d5230fd407ebd9383c0ae4eb4578ad (diff) | |
download | cpython-dc54f2be3f718cdd5208894b0d763d62f43ea3a5.zip cpython-dc54f2be3f718cdd5208894b0d763d62f43ea3a5.tar.gz cpython-dc54f2be3f718cdd5208894b0d763d62f43ea3a5.tar.bz2 |
Make 'bin' argument trigger DeprecationWarning
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 2 |
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 |