[Zodb-checkins] CVS: StandaloneZODB/ZODB - Connection.py:1.69

Jeremy Hylton jeremy@zope.com
Wed, 12 Jun 2002 15:40:48 -0400


Update of /cvs-repository/StandaloneZODB/ZODB
In directory cvs.zope.org:/tmp/cvs-serv23720

Modified Files:
	Connection.py 
Log Message:
Change test for None oid in invalidate() to assert.
Reindent MUCH_RING_CHECKING test.


=== StandaloneZODB/ZODB/Connection.py 1.68 => 1.69 ===
 
 if MUCH_RING_CHECKING:
-  # To get rid of this warning, change the define inside
-  # cPickleCache.c and recompile.
-  LOG('ZODB',WARNING,
-      'Using cPickleCache with low performance (but extra debugging checks)')
+    # To get rid of this warning, change the define inside
+    # cPickleCache.c and recompile.
+    LOG('ZODB',WARNING,
+        'Using cPickleCache with low performance (but extra debugging checks)')
 del MUCH_RING_CHECKING
 
 def updateCodeTimestamp():
@@ -225,8 +225,8 @@
         if object is self:
             self._cache.invalidate(self._invalidated)
         else:
-            if object._p_oid is not None:
-                self._cache.invalidate(object._p_oid)
+            assert object._p_oid is not None
+            self._cache.invalidate(object._p_oid)
 
     def cacheFullSweep(self, dt=0):
         self._cache.full_sweep(dt)