[Checkins] SVN: zope.publisher/trunk/src/zope/publisher/ Wrap long lines.

Tres Seaver tseaver at palladion.com
Sat Apr 24 14:30:52 EDT 2010


Log message for revision 111386:
  Wrap long lines.

Changed:
  U   zope.publisher/trunk/src/zope/publisher/http.py
  U   zope.publisher/trunk/src/zope/publisher/tests/test_http.py

-=-
Modified: zope.publisher/trunk/src/zope/publisher/http.py
===================================================================
--- zope.publisher/trunk/src/zope/publisher/http.py	2010-04-24 18:30:51 UTC (rev 111385)
+++ zope.publisher/trunk/src/zope/publisher/http.py	2010-04-24 18:30:51 UTC (rev 111386)
@@ -801,7 +801,8 @@
         if isinstance(body, unicode):
             if not unicode_mimetypes_re.match(content_type):
                 raise ValueError(
-                    'Unicode results must have a text, RFC 3023, or +xml content type.')
+                    'Unicode results must have a text, RFC 3023, or '
+                    '+xml content type.')
 
             major, minor, params = zope.contenttype.parse.parse(content_type)
 

Modified: zope.publisher/trunk/src/zope/publisher/tests/test_http.py
===================================================================
--- zope.publisher/trunk/src/zope/publisher/tests/test_http.py	2010-04-24 18:30:51 UTC (rev 111385)
+++ zope.publisher/trunk/src/zope/publisher/tests/test_http.py	2010-04-24 18:30:51 UTC (rev 111386)
@@ -288,7 +288,8 @@
         request = self._createRequest(env, '')
         request.response.redirect(request.URL)
         self.assertEquals(request.response.getStatus(), 303)
-        self.assertEquals(request.response.getHeader('location'), str(request.URL))
+        self.assertEquals(request.response.getHeader('location'),
+                          str(request.URL))
 
     def testUntrustedRedirect(self):
         # Redirects are by default only allowed to target the same host as the
@@ -751,7 +752,8 @@
         headers, body = self._parseResult(response)
         # Check that the data have been written, and that the header
         # has been preserved
-        self.assertEqual(headers['Content-Type'], 'text/plain;charset=us-ascii')
+        self.assertEqual(headers['Content-Type'],
+                         'text/plain;charset=us-ascii')
         self.assertEqual(body, data)
 
         # Make sure that no Content-Length header was added
@@ -808,12 +810,14 @@
 
         headers, body = self._getResultFromResponse(u"test", "utf-8",
             {"content-type": "text/xml-external-parsed-entity"})
-        eq("text/xml-external-parsed-entity;charset=utf-8", headers["Content-Type"])
+        eq("text/xml-external-parsed-entity;charset=utf-8",
+           headers["Content-Type"])
         eq("test", body)
 
         headers, body = self._getResultFromResponse(u"test", "utf-8",
             {"content-type": "application/xml-external-parsed-entity"})
-        eq("application/xml-external-parsed-entity;charset=utf-8", headers["Content-Type"])
+        eq("application/xml-external-parsed-entity;charset=utf-8",
+           headers["Content-Type"])
         eq("test", body)
 
         # Mozilla XUL



More information about the checkins mailing list