Commit a406b955 authored by Jeremy Hylton's avatar Jeremy Hylton

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.
parent 4f5fd312
......@@ -144,7 +144,7 @@ file 0 and file 1.
"""
__version__ = "$Revision: 1.14 $"[11:-2]
__version__ = "$Revision: 1.15 $"[11:-2]
import os, tempfile
from struct import pack, unpack
......@@ -277,7 +277,8 @@ class ClientCache:
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment