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

jjlee at codespeak.net jjlee at codespeak.net
Sun Sep 2 22:01:44 CEST 2007


Author: jjlee
Date: Sun Sep  2 22:01:42 2007
New Revision: 46246

Modified:
   wwwsearch/mechanize/trunk/mechanize/_clientcookie.py
   wwwsearch/mechanize/trunk/mechanize/_http.py
   wwwsearch/mechanize/trunk/mechanize/_mechanize.py
   wwwsearch/mechanize/trunk/mechanize/_msiecookiejar.py
   wwwsearch/mechanize/trunk/mechanize/_pullparser.py
   wwwsearch/mechanize/trunk/mechanize/_useragent.py
   wwwsearch/mechanize/trunk/mechanize/_util.py
Log:
Fix some too-long lines.


Modified: wwwsearch/mechanize/trunk/mechanize/_clientcookie.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_clientcookie.py	(original)
+++ wwwsearch/mechanize/trunk/mechanize/_clientcookie.py	Sun Sep  2 22:01:42 2007
@@ -465,8 +465,8 @@
 
         Note that domain_return_ok is called for every *cookie* domain, not
         just for the *request* domain.  For example, the function might be
-        called with both ".acme.com" and "www.acme.com" if the request domain is
-        "www.acme.com".  The same goes for path_return_ok.
+        called with both ".acme.com" and "www.acme.com" if the request domain
+        is "www.acme.com".  The same goes for path_return_ok.
 
         For argument documentation, see the docstring for return_ok.
 
@@ -818,7 +818,8 @@
         # done by domain_return_ok.
         debug(" - checking cookie %s", cookie)
 
-        for n in "version", "verifiability", "secure", "expires", "port", "domain":
+        for n in ("version", "verifiability", "secure", "expires", "port",
+                  "domain"):
             fn_name = "return_ok_"+n
             fn = getattr(self, fn_name)
             if not fn(cookie, request):

Modified: wwwsearch/mechanize/trunk/mechanize/_http.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_http.py	(original)
+++ wwwsearch/mechanize/trunk/mechanize/_http.py	Sun Sep  2 22:01:42 2007
@@ -300,7 +300,8 @@
         if is_html(ct_hdrs, url, self._allow_xhtml):
             try:
                 try:
-                    html_headers = parse_head(response, self.head_parser_class())
+                    html_headers = parse_head(response,
+                                              self.head_parser_class())
                 finally:
                     response.seek(0)
             except (HTMLParser.HTMLParseError,

Modified: wwwsearch/mechanize/trunk/mechanize/_mechanize.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_mechanize.py	(original)
+++ wwwsearch/mechanize/trunk/mechanize/_mechanize.py	Sun Sep  2 22:01:42 2007
@@ -425,8 +425,8 @@
         """Return the global form object, or None if the factory implementation
         did not supply one.
 
-        The "global" form object contains all controls that are not descendants of
-        any FORM element.
+        The "global" form object contains all controls that are not descendants
+        of any FORM element.
 
         The returned form object implements the ClientForm.HTMLForm interface.
 

Modified: wwwsearch/mechanize/trunk/mechanize/_msiecookiejar.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_msiecookiejar.py	(original)
+++ wwwsearch/mechanize/trunk/mechanize/_msiecookiejar.py	Sun Sep  2 22:01:42 2007
@@ -114,8 +114,9 @@
                     domain = m.group(1)
                     path = m.group(2)
 
-                    cookies.append({"KEY": key, "VALUE": value, "DOMAIN": domain,
-                                    "PATH": path, "FLAGS": flags, "HIXP": hi_expire,
+                    cookies.append({"KEY": key, "VALUE": value,
+                                    "DOMAIN": domain, "PATH": path,
+                                    "FLAGS": flags, "HIXP": hi_expire,
                                     "LOXP": lo_expire, "HICREATE": hi_create,
                                     "LOCREATE": lo_create})
         finally:

Modified: wwwsearch/mechanize/trunk/mechanize/_pullparser.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_pullparser.py	(original)
+++ wwwsearch/mechanize/trunk/mechanize/_pullparser.py	Sun Sep  2 22:01:42 2007
@@ -205,7 +205,8 @@
         return iter_until_exception(self.get_tag, NoMoreTokensError, *names)
 
     def tokens(self, *tokentypes):
-        return iter_until_exception(self.get_token, NoMoreTokensError, *tokentypes)
+        return iter_until_exception(self.get_token, NoMoreTokensError,
+                                    *tokentypes)
 
     def next(self):
         try:

Modified: wwwsearch/mechanize/trunk/mechanize/_useragent.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_useragent.py	(original)
+++ wwwsearch/mechanize/trunk/mechanize/_useragent.py	Sun Sep  2 22:01:42 2007
@@ -306,7 +306,8 @@
             if obj is not None:
                 newhandler = handler_class(obj)
             else:
-                newhandler = handler_class(*constructor_args, **constructor_kwds)
+                newhandler = handler_class(
+                    *constructor_args, **constructor_kwds)
         else:
             newhandler = None
         self._replace_handler(name, newhandler)

Modified: wwwsearch/mechanize/trunk/mechanize/_util.py
==============================================================================
--- wwwsearch/mechanize/trunk/mechanize/_util.py	(original)
+++ wwwsearch/mechanize/trunk/mechanize/_util.py	Sun Sep  2 22:01:42 2007
@@ -156,7 +156,8 @@
     return t
 
 
-strict_re = re.compile(r"^[SMTWF][a-z][a-z], (\d\d) ([JFMASOND][a-z][a-z]) (\d\d\d\d) (\d\d):(\d\d):(\d\d) GMT$")
+strict_re = re.compile(r"^[SMTWF][a-z][a-z], (\d\d) ([JFMASOND][a-z][a-z]) "
+                       r"(\d\d\d\d) (\d\d):(\d\d):(\d\d) GMT$")
 wkday_re = re.compile(
     r"^(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)[a-z]*,?\s*", re.I)
 loose_http_re = re.compile(


More information about the wwwsearch-commits mailing list