[Zope-Checkins] SVN: Zope/trunk/lib/python/tempstorage/TemporaryStorage.py The caller can't deal with using current data from loadBefore, so having an "end_tid" of None is useless.

Chris McDonough chrism at plope.com
Sun Jun 19 18:34:43 EDT 2005


Log message for revision 30857:
  The caller can't deal with using current data from loadBefore, so having an "end_tid" of None is useless.
  

Changed:
  U   Zope/trunk/lib/python/tempstorage/TemporaryStorage.py

-=-
Modified: Zope/trunk/lib/python/tempstorage/TemporaryStorage.py
===================================================================
--- Zope/trunk/lib/python/tempstorage/TemporaryStorage.py	2005-06-19 16:32:17 UTC (rev 30856)
+++ Zope/trunk/lib/python/tempstorage/TemporaryStorage.py	2005-06-19 22:34:43 UTC (rev 30857)
@@ -153,7 +153,7 @@
             start_tid = tids[i]
             j = i + 1
             if j == len(tids):
-                end_tid = None
+                return None # the caller can't deal with current data
             else:
                 end_tid = tids[j]
             data = self.loadSerial(oid, start_tid)



More information about the Zope-Checkins mailing list