[Python-checkins] python/dist/src/Lib sets.py,1.13,1.14
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Fri, 23 Aug 2002 07:45:04 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv11945
Modified Files:
sets.py
Log Message:
RH pointed out that discard(element) doesn't do the transformation on
the element if necessary. Fixed by calling self.remove(element).
Index: sets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sets.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** sets.py 22 Aug 2002 17:23:33 -0000 1.13
--- sets.py 23 Aug 2002 14:45:02 -0000 1.14
***************
*** 451,455 ****
"""
try:
! del self._data[element]
except KeyError:
pass
--- 451,455 ----
"""
try:
! self.remove(element)
except KeyError:
pass