mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Set the warnings stacklevel to two.
This commit is contained in:
parent
f350160d43
commit
9d50d91e77
1 changed files with 2 additions and 2 deletions
|
@ -502,8 +502,8 @@ class Set(BaseSet):
|
|||
"""Add all values from an iterable (such as a list or file)."""
|
||||
import warnings
|
||||
warnings.warn("The update() method deprecated; "
|
||||
"Use union_update() instead",
|
||||
DeprecationWarning)
|
||||
"Use union_update() instead.",
|
||||
DeprecationWarning, 2)
|
||||
self._update(iterable)
|
||||
|
||||
def clear(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue