[wwwsearch-commits] r29654 - wwwsearch/mechanize/trunk/mechanize
jjlee at codespeak.net
jjlee at codespeak.net
Wed Jul 5 22:18:03 CEST 2006
Author: jjlee
Date: Wed Jul 5 22:18:02 2006
New Revision: 29654
Added:
wwwsearch/mechanize/trunk/mechanize/_seek.py
Log:
Add missing module _seek.py
Added: wwwsearch/mechanize/trunk/mechanize/_seek.py
==============================================================================
--- (empty file)
+++ wwwsearch/mechanize/trunk/mechanize/_seek.py Wed Jul 5 22:18:02 2006
@@ -0,0 +1,11 @@
+from urllib2 import BaseHandler
+from _response import response_seek_wrapper
+
+
+class SeekableProcessor(BaseHandler):
+ """Make responses seekable."""
+
+ def any_response(self, request, response):
+ if not hasattr(response, "seek"):
+ return response_seek_wrapper(response)
+ return response
More information about the wwwsearch-commits
mailing list