[wwwsearch-commits] r29102 - wwwsearch/mechanize/trunk/mechanize
jjlee at codespeak.net
jjlee at codespeak.net
Wed Jun 21 22:40:48 CEST 2006
Author: jjlee
Date: Wed Jun 21 22:40:47 2006
New Revision: 29102
Modified:
wwwsearch/mechanize/trunk/mechanize/_urllib2.py
wwwsearch/mechanize/trunk/mechanize/_urllib2_support.py
Log:
Move seek handler into new module _seek
Modified: wwwsearch/mechanize/trunk/mechanize/_urllib2.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_urllib2.py (original)
+++ wwwsearch/mechanize/trunk/mechanize/_urllib2.py Wed Jun 21 22:40:47 2006
@@ -39,7 +39,6 @@
HTTPHandler, \
HTTPRedirectHandler, \
HTTPEquivProcessor, \
- SeekableProcessor, \
HTTPCookieProcessor, \
HTTPRefererProcessor, \
HTTPRefreshProcessor, \
@@ -51,6 +50,8 @@
from _debug import \
HTTPResponseDebugProcessor, \
HTTPRedirectDebugProcessor
+from _seek import \
+ SeekableProcessor
# crap ATM
## from _gzip import \
## HTTPGzipProcessor
Modified: wwwsearch/mechanize/trunk/mechanize/_urllib2_support.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_urllib2_support.py (original)
+++ wwwsearch/mechanize/trunk/mechanize/_urllib2_support.py Wed Jun 21 22:40:47 2006
@@ -299,14 +299,6 @@
https_response = http_response
-class SeekableProcessor(BaseHandler):
- """Make responses seekable."""
-
- def any_response(self, request, response):
- if not hasattr(response, "seek"):
- return response_seek_wrapper(response)
- return response
-
class HTTPCookieProcessor(BaseHandler):
"""Handle HTTP cookies.
More information about the wwwsearch-commits
mailing list