Set the warnings stacklevel to two.
This commit is contained in:
parent
f350160d43
commit
9d50d91e77
|
@ -502,8 +502,8 @@ class Set(BaseSet):
|
||||||
"""Add all values from an iterable (such as a list or file)."""
|
"""Add all values from an iterable (such as a list or file)."""
|
||||||
import warnings
|
import warnings
|
||||||
warnings.warn("The update() method deprecated; "
|
warnings.warn("The update() method deprecated; "
|
||||||
"Use union_update() instead",
|
"Use union_update() instead.",
|
||||||
DeprecationWarning)
|
DeprecationWarning, 2)
|
||||||
self._update(iterable)
|
self._update(iterable)
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
|
|
Loading…
Reference in New Issue