From: Raymond Hettinger Date: Mon, 8 Sep 2003 19:16:36 +0000 (+0000) Subject: Set the warnings stacklevel to two. X-Git-Tag: v2.4a1~1610 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d50d91e77974c233c1c136f1a7a8ce7d53cea09;p=python Set the warnings stacklevel to two. --- diff --git a/Lib/sets.py b/Lib/sets.py index 3fe8c8fc63..6fea65fc59 100644 --- a/Lib/sets.py +++ b/Lib/sets.py @@ -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):