mirror of https://github.com/python/cpython
Make 'bin' argument trigger DeprecationWarning
This commit is contained in:
parent
cbbee6fed5
commit
dc54f2be3f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue