[wwwsearch-commits] r26835 - wwwsearch/mechanize/trunk/mechanize
jjlee at codespeak.net
jjlee at codespeak.net
Fri May 5 22:59:23 CEST 2006
Author: jjlee
Date: Fri May 5 22:59:22 2006
New Revision: 26835
Modified:
wwwsearch/mechanize/trunk/mechanize/_html.py
Log:
Fix unintentional dependency on BeautifulSoup (thanks Michael Soulier)
Modified: wwwsearch/mechanize/trunk/mechanize/_html.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_html.py (original)
+++ wwwsearch/mechanize/trunk/mechanize/_html.py Fri May 5 22:59:22 2006
@@ -556,7 +556,7 @@
"""
def __init__(self, i_want_broken_xhtml_support=False,
- soup_class=MechanizeBs):
+ soup_class=None):
Factory.__init__(
self,
forms_factory=RobustFormsFactory(),
@@ -564,6 +564,8 @@
title_factory=RobustTitleFactory(),
is_html_p=make_is_html(allow_xhtml=i_want_broken_xhtml_support),
)
+ if soup_class is None:
+ soup_class = MechanizeBs
self._soup_class = soup_class
def set_response(self, response):
More information about the wwwsearch-commits
mailing list