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

jjlee at codespeak.net jjlee at codespeak.net
Mon Apr 24 22:33:33 CEST 2006


Author: jjlee
Date: Mon Apr 24 22:33:33 2006
New Revision: 26277

Modified:
   wwwsearch/ClientCookie/trunk/ClientCookie/_Util.py
Log:
Allow mechanize to tell if a response can be safely .close()d -- if not, mechanize will pick it apart and re-wrap the pieces with _Util.closeable_response

Modified: wwwsearch/ClientCookie/trunk/ClientCookie/_Util.py
==============================================================================
--- wwwsearch/ClientCookie/trunk/ClientCookie/_Util.py	(original)
+++ wwwsearch/ClientCookie/trunk/ClientCookie/_Util.py	Mon Apr 24 22:33:33 2006
@@ -613,6 +613,8 @@
     it: http://python.org/sf/1144636).
 
     """
+    # presence of this attr indicates is useable after .close()
+    closeable_response = None
 
     def __init__(self, fp, headers, url, code, msg):
         self._set_fp(fp)


More information about the wwwsearch-commits mailing list