Commit d915bf9b authored by Raymond Hettinger's avatar Raymond Hettinger

Set the warnings stacklevel to two.

parent 198cb99d
......@@ -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):
......
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