]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove deprecation of sets.Set.update().
authorRaymond Hettinger <python@rcn.com>
Wed, 19 Nov 2003 15:52:14 +0000 (15:52 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 19 Nov 2003 15:52:14 +0000 (15:52 +0000)
Lib/sets.py
Misc/NEWS

index 6e09005ebb25f6ca0196d481a9bd021714fbe69d..8ec7e2fa8c50ec94929154b52656fd1a06556051 100644 (file)
@@ -504,10 +504,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 deprecated; "
-                      "Use union_update() instead.",
-                      DeprecationWarning, 2)
         self._update(iterable)
 
     def clear(self):
index ecc242ab7dc911f2d6c5b6b0874aa82628c24dd6..191ef483c3ca44af6c2d4ecbea5e59746348da4d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -161,8 +161,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.
 
 - _strptime.py now has a behind-the-scenes caching mechanism for the most
   recent TimeRE instance used along with the last five unique directive