[wwwsearch-commits] r38132 - wwwsearch/mechanize/trunk/mechanize
jjlee at codespeak.net
jjlee at codespeak.net
Thu Feb 8 02:40:53 CET 2007
Author: jjlee
Date: Thu Feb 8 02:40:50 2007
New Revision: 38132
Modified:
wwwsearch/mechanize/trunk/mechanize/_request.py
Log:
Fix HTTP proxy support: r29110 meant that Request.get_selector() didn't take into account the change to .__r_host (tgates at xplantechnology.com)
Modified: wwwsearch/mechanize/trunk/mechanize/_request.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_request.py (original)
+++ wwwsearch/mechanize/trunk/mechanize/_request.py Thu Feb 8 02:40:50 2007
@@ -49,9 +49,7 @@
self.origin_req_host = origin_req_host
def get_selector(self):
- if self.selector is None:
- self.selector, self.__r_selector = urllib.splittag(self.__r_host)
- return self.selector
+ return urllib.splittag(self.__r_host)[0]
def get_origin_req_host(self):
return self.origin_req_host
More information about the wwwsearch-commits
mailing list