[Zope3-checkins] CVS: Zope3/src/ZODB - Connection.py:1.138

Jeremy Hylton jeremy at zope.com
Fri Mar 12 01:40:11 EST 2004


Update of /cvs-repository/Zope3/src/ZODB
In directory cvs.zope.org:/tmp/cvs-serv15332

Modified Files:
	Connection.py 
Log Message:
Simplify assertions.


=== Zope3/src/ZODB/Connection.py 1.137 => 1.138 ===
--- Zope3/src/ZODB/Connection.py:1.137	Fri Mar 12 01:11:36 2004
+++ Zope3/src/ZODB/Connection.py	Fri Mar 12 01:37:23 2004
@@ -771,9 +771,7 @@
         # been modified at txn_time.
 
         assert start < self._txn_time, (u64(start), u64(self._txn_time))
-        assert end is None or self._txn_time <= end, \
-               (u64(self._txn_time), u64(end))
-        assert end is not None
+        assert self._txn_time <= end, (u64(self._txn_time), u64(end))
         self._reader.setGhostState(obj, data)
         obj._p_serial = start
         return True




More information about the Zope3-Checkins mailing list