Commit e399d08a authored by Guido van Rossum's avatar Guido van Rossum

RH pointed out that discard(element) doesn't do the transformation on

the element if necessary.  Fixed by calling self.remove(element).
parent 86c659a3
......@@ -450,7 +450,7 @@ class Set(BaseSet):
If the element is not a member, do nothing.
"""
try:
del self._data[element]
self.remove(element)
except KeyError:
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment