[Zodb-checkins] CVS: Packages/ZEO - ClientCache.py:1.15

jeremy@digicool.com jeremy@digicool.com
Thu, 19 Apr 2001 15:20:20 -0400 (EDT)


Update of /cvs-repository/Packages/ZEO
In directory korak:/tmp/cvs-serv24770

Modified Files:
	ClientCache.py 
Log Message:
Gotcha.  The bare 'None' should have been a 'return None', otherwise
the cache will return data from version X whenever versioned data is
requested, regardless of whether the version in question is X.



--- Updated File ClientCache.py in package Packages/ZEO --
--- ClientCache.py	2000/12/11 18:02:13	1.14
+++ ClientCache.py	2001/04/19 19:20:19	1.15
@@ -277,7 +277,8 @@
                 if dlen:
                     seek(-dlen-vlen, 1)
                     return read(dlen), h[19:]
-                else: None
+                else:
+                    return None
 
             dlen=unpack(">i", read(4))[0]
             return read(dlen), read(8)