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

Make 'bin' argument trigger DeprecationWarning

parent cbbee6fe
......@@ -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
......
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