Make 'bin' argument trigger DeprecationWarning

This commit is contained in:
Andrew M. Kuchling 2004-08-07 16:27:24 +00:00
parent cbbee6fed5
commit dc54f2be3f
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ class Pickler:
raise ValueError, "can't specify both 'protocol' and 'bin'" raise ValueError, "can't specify both 'protocol' and 'bin'"
if bin is not None: if bin is not None:
warnings.warn("The 'bin' argument to Pickler() is deprecated", warnings.warn("The 'bin' argument to Pickler() is deprecated",
PendingDeprecationWarning) DeprecationWarning)
protocol = bin protocol = bin
if protocol is None: if protocol is None:
protocol = 0 protocol = 0