commit | 9d50d91e77974c233c1c136f1a7a8ce7d53cea09 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Sep 08 19:16:36 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Sep 08 19:16:36 2003 +0000 |
tree | d858e7b3bb2e89ca78775f7e07fe9024995085b7 | |
parent | f350160d4370b79cb174bab39c923d376c040fad [diff] |
Set the warnings stacklevel to two.
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 @@ """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):