[wwwsearch-commits] r19203 - wwwsearch/mechanize/trunk/mechanize

jjlee at codespeak.net jjlee at codespeak.net
Sun Oct 30 20:56:50 CET 2005


Author: jjlee
Date: Sun Oct 30 20:56:50 2005
New Revision: 19203

Modified:
   wwwsearch/mechanize/trunk/mechanize/_mechanize.py
Log:
Insist on latest ClientForm and ClientCookie

Modified: wwwsearch/mechanize/trunk/mechanize/_mechanize.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_mechanize.py	(original)
+++ wwwsearch/mechanize/trunk/mechanize/_mechanize.py	Sun Oct 30 20:56:50 2005
@@ -32,8 +32,8 @@
         raise ValueError
     return tuple([m.groupdict()[part] for part in
                   ("major", "minor", "bugfix", "state", "pre")])
-assert map(int, parse_version(ClientCookie.VERSION)[:3]) >= [1, 0, 2], \
-       "ClientCookie 1.0.2 or newer is required"
+assert map(int, parse_version(ClientCookie.VERSION)[:3]) >= [1, 0, 3], \
+       "ClientCookie 1.0.3 or newer is required"
 
 from _useragent import UserAgent
 
@@ -87,7 +87,7 @@
 
     def get_links_iter(self, fh, base_url, encoding=None):
         import pullparser
-        p = pullparser.TolerantPullParser(fh, encoding=encoding)
+        p = self.link_parser_class(fh, encoding=encoding)
 
         for token in p.tags(*(self.urltags.keys()+["base"])):
             if token.data == "base":
@@ -139,8 +139,8 @@
                  backwards_compat=False,
                  ):
         import ClientForm
-        assert map(int, parse_version(ClientForm.VERSION)[:3]) >= [0, 2, 0], \
-               "ClientForm >= 0.2.0a is required"
+        assert map(int, parse_version(ClientForm.VERSION)[:3]) >= [0, 2, 1], \
+               "ClientForm >= 0.2.1a is required"
         self.select_default = select_default
         if form_parser_class is None:
             form_parser_class = ClientForm.FormParser


More information about the wwwsearch-commits mailing list