[Zodb-checkins] CVS: Zope3/src/zodb/storage - memory.py:1.1.4.1
Barry Warsaw
barry at zope.com
Mon Apr 21 17:22:54 EDT 2003
Update of /cvs-repository/Zope3/src/zodb/storage
In directory cvs.zope.org:/tmp/cvs-serv13305
Modified Files:
Tag: jeremy-new-pack-branch
memory.py
Log Message:
set_both(): Typo repair, which fixes memory storage's passing of the
new pack tests. A key test was outdented one too many levels.
FakeQueue.values(): Handy for debugging.
=== Zope3/src/zodb/storage/memory.py 1.1 => 1.1.4.1 ===
--- Zope3/src/zodb/storage/memory.py:1.1 Thu Mar 20 17:58:16 2003
+++ Zope3/src/zodb/storage/memory.py Mon Apr 21 16:22:53 2003
@@ -224,8 +224,8 @@
raise db.DBNotFoundError
while self._keys[i] == key and self._vals[i] <> val:
i += 1
- if i > len(self):
- raise db.DBNotFoundError
+ if i >= len(self):
+ raise db.DBNotFoundError
return self._getrec(i)
def set(self, key):
@@ -293,3 +293,6 @@
def append(self, val, txn=None):
super(FakeQueue, self).append(val)
+
+ def values(self):
+ return self
More information about the Zodb-checkins
mailing list