[wwwsearch-commits] r19990 -
wwwsearch/ClientCookie/trunk/ClientCookie
jjlee at codespeak.net
jjlee at codespeak.net
Thu Nov 17 20:58:38 CET 2005
Author: jjlee
Date: Thu Nov 17 20:58:38 2005
New Revision: 19990
Modified:
wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py
Log:
Change handler_order for HTTPEquivProcessor so handlers that look at HTTP headers get to see equiv headers; Extend a docstring
Modified: wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py
==============================================================================
--- wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py (original)
+++ wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py Thu Nov 17 20:58:38 2005
@@ -300,6 +300,8 @@
class HTTPEquivProcessor(BaseHandler):
"""Append META HTTP-EQUIV headers to regular HTTP headers."""
+ handler_order = 300 # before handlers that look at HTTP headers
+
def __init__(self, head_parser_class=HeadParser):
self.head_parser_class = head_parser_class
@@ -419,6 +421,8 @@
HTTPRefererProcessor to fetch a series of URLs extracted from a single
page, this will break).
+ There's a proper implementation of this in module mechanize.
+
"""
def __init__(self):
self.referer = None
More information about the wwwsearch-commits
mailing list