From: Raymond Hettinger Date: Mon, 22 Sep 2003 04:42:56 +0000 (+0000) Subject: Removed the PendingDeprecation warning from sets.py because it adds X-Git-Tag: v2.3.1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=733ca1da95603b99826382b73b0105aa449e50ee;p=thirdparty%2FPython%2Fcpython.git Removed the PendingDeprecation warning from sets.py because it adds little value while introducing incompatability with the version being bugfixed. --- 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.