mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Remove deprecation of sets.Set.update().
This commit is contained in:
parent
37249c5524
commit
70b9f499a3
2 changed files with 1 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue