mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Make 'bin' argument trigger DeprecationWarning
This commit is contained in:
parent
cbbee6fed5
commit
dc54f2be3f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue