[Zope3-checkins] CVS: Zope3/src/zodb - utils.py:1.2.18.1

Jeremy Hylton jeremy@zope.com
Mon, 3 Mar 2003 17:10:35 -0500


Update of /cvs-repository/Zope3/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv612/src/zodb

Modified Files:
      Tag: jeremy-atomic-invalidation-branch
	utils.py 
Log Message:
Add remove() method for compatibility with std Set object.


=== Zope3/src/zodb/utils.py 1.2 => 1.2.18.1 ===
--- Zope3/src/zodb/utils.py:1.2	Wed Dec 25 09:12:16 2002
+++ Zope3/src/zodb/utils.py	Mon Mar  3 17:10:35 2003
@@ -47,6 +47,8 @@
     class Set(dict):
         def add(self, o):
             self[o] = 1
+        def remove(self, o):
+            del self[o]
         def __ior__(self, other):
             if not isinstance(other, Set):
                 return NotImplemented