]> granicus.if.org Git - python/commitdiff
Set the warnings stacklevel to two.
authorRaymond Hettinger <python@rcn.com>
Mon, 8 Sep 2003 19:16:36 +0000 (19:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 8 Sep 2003 19:16:36 +0000 (19:16 +0000)
Lib/sets.py

index 3fe8c8fc63d117ca522a24f8d6dc47a336e22dd1..6fea65fc5933993499f13d5ca5221db5e298b9c2 100644 (file)
@@ -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):