summaryrefslogtreecommitdiffstats
path: root/Lib/sets.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-09-08 19:16:36 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-09-08 19:16:36 (GMT)
commit9d50d91e77974c233c1c136f1a7a8ce7d53cea09 (patch)
treed858e7b3bb2e89ca78775f7e07fe9024995085b7 /Lib/sets.py
parentf350160d4370b79cb174bab39c923d376c040fad (diff)
downloadcpython-9d50d91e77974c233c1c136f1a7a8ce7d53cea09.zip
cpython-9d50d91e77974c233c1c136f1a7a8ce7d53cea09.tar.gz
cpython-9d50d91e77974c233c1c136f1a7a8ce7d53cea09.tar.bz2
Set the warnings stacklevel to two.
Diffstat (limited to 'Lib/sets.py')
-rw-r--r--Lib/sets.py4
1 files 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):