commit | dc54f2be3f718cdd5208894b0d763d62f43ea3a5 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sat Aug 07 16:27:24 2004 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sat Aug 07 16:27:24 2004 +0000 |
tree | 3400592705109ce32d03af3cf81c56e26c2dfdbb | |
parent | cbbee6fed5d5230fd407ebd9383c0ae4eb4578ad [diff] [blame] |
Make 'bin' argument trigger DeprecationWarning
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 @@ 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