Commit 2d21d50c authored by Raymond Hettinger's avatar Raymond Hettinger

Issue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard().

Needs to be backported to 2.6 and forward ported to 3.0 and 3.1.
parent fbcf7494
...@@ -249,12 +249,12 @@ class MutableSet(Set): ...@@ -249,12 +249,12 @@ class MutableSet(Set):
@abstractmethod @abstractmethod
def add(self, value): def add(self, value):
"""Return True if it was added, False if already there.""" """Add an element."""
raise NotImplementedError raise NotImplementedError
@abstractmethod @abstractmethod
def discard(self, value): def discard(self, value):
"""Return True if it was deleted, False if not there.""" """Remove an element. Do not raise an exception if absent."""
raise NotImplementedError raise NotImplementedError
def remove(self, value): def remove(self, value):
......
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