summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-01-13 09:08:32 +0000
committerRaymond Hettinger <python@rcn.com>2009-01-13 09:08:32 +0000
commit2d21d50c10d1041f56d6f089d66a98b2bbf55e12 (patch)
tree64dd05eb5379c2cf9954f16ad7a92bac8a261f22
parentfbcf749479c088c933e74326f76358b0a57f6210 (diff)
downloadcpython-git-2d21d50c10d1041f56d6f089d66a98b2bbf55e12.tar.gz
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.
-rw-r--r--Lib/_abcoll.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index a5fee081df..38b44a5895 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -249,12 +249,12 @@ class MutableSet(Set):
@abstractmethod
def add(self, value):
- """Return True if it was added, False if already there."""
+ """Add an element."""
raise NotImplementedError
@abstractmethod
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
def remove(self, value):