[wwwsearch-commits] r21704 - wwwsearch/ClientCookie/trunk/ClientCookie

jjlee at codespeak.net jjlee at codespeak.net
Thu Jan 5 00:59:12 CET 2006


Author: jjlee
Date: Thu Jan  5 00:59:11 2006
New Revision: 21704

Modified:
   wwwsearch/ClientCookie/trunk/ClientCookie/_Util.py
Log:
Restore seek_wrapper invariant (duh)

Modified: wwwsearch/ClientCookie/trunk/ClientCookie/_Util.py
==============================================================================
--- wwwsearch/ClientCookie/trunk/ClientCookie/_Util.py	(original)
+++ wwwsearch/ClientCookie/trunk/ClientCookie/_Util.py	Thu Jan  5 00:59:11 2006
@@ -415,11 +415,9 @@
         self.__pos = 0  # seek position
 
     def invariant(self):
-        return True  # XXX anything better??
-        # this was the old condition:
         # The end of the cache is always at the same place as the end of the
         # wrapped file.
-        #return self.wrapped.tell() == len(self.__cache.getvalue())
+        return self.wrapped.tell() == len(self.__cache.getvalue())
 
     def __getattr__(self, name):
         wrapped = self.__dict__.get("wrapped")


More information about the wwwsearch-commits mailing list