From 9d50d91e77974c233c1c136f1a7a8ce7d53cea09 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 8 Sep 2003 19:16:36 +0000 Subject: Set the warnings stacklevel to two. --- Lib/sets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/sets.py b/Lib/sets.py index 3fe8c8f..6fea65f 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): -- cgit v0.12