Commit b043545b authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Make 'bin' argument trigger DeprecationWarning

parent 16d165a2
...@@ -199,7 +199,7 @@ class Pickler: ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment