From 733ca1da95603b99826382b73b0105aa449e50ee Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 22 Sep 2003 04:42:56 +0000 Subject: [PATCH] Removed the PendingDeprecation warning from sets.py because it adds little value while introducing incompatability with the version being bugfixed. --- Lib/sets.py | 4 ---- Misc/NEWS | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Lib/sets.py b/Lib/sets.py index bd2868ca4876..04b56e2fcd6a 100644 --- a/Lib/sets.py +++ b/Lib/sets.py @@ -500,10 +500,6 @@ class Set(BaseSet): def update(self, iterable): """Add all values from an iterable (such as a list or file).""" - import warnings - warnings.warn("The update() method is going to be deprecated; " - "Use union_update() instead.", - PendingDeprecationWarning, 2) self._update(iterable) def clear(self): diff --git a/Misc/NEWS b/Misc/NEWS index 7e3ce1712530..42384c763cf4 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -90,8 +90,7 @@ Library - sets.py now runs under Py2.2. In addition, the argument restrictions for most set methods (but not the operators) have been relaxed to - allow any iterable. Also the Set.update() has been deprecated because - it duplicates Set.union_update(). + allow any iterable. - Bug #801342: random.sample() now accepts a Set as a possible argument. Previously, it insisted that the population argument be indexable. -- 2.47.3