Commit 5d8c485a 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 b20cd970
......@@ -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