diff mercurial/hgweb/server.py @ 8663:45f626a39def

wrap string literals in error messages
author Martin Geisler <mg@lazybytes.net>
date Sun, 31 May 2009 01:30:16 +0200
parents 46293a0c7e9f
children a232b90ffb51
line wrap: on
line diff
--- a/mercurial/hgweb/server.py	Sun May 31 01:29:30 2009 +0200
+++ b/mercurial/hgweb/server.py	Sun May 31 01:30:16 2009 +0200
@@ -69,8 +69,8 @@
             self._start_response("500 Internal Server Error", [])
             self._write("Internal Server Error")
             tb = "".join(traceback.format_exception(*sys.exc_info()))
-            self.log_error("Exception happened during processing request '%s':\n%s",
-                           self.path, tb)
+            self.log_error("Exception happened during processing "
+                           "request '%s':\n%s", self.path, tb)
 
     def do_GET(self):
         self.do_POST()
@@ -126,7 +126,8 @@
 
     def send_headers(self):
         if not self.saved_status:
-            raise AssertionError("Sending headers before start_response() called")
+            raise AssertionError("Sending headers before "
+                                 "start_response() called")
         saved_status = self.saved_status.split(None, 1)
         saved_status[0] = int(saved_status[0])
         self.send_response(*saved_status)
@@ -163,7 +164,8 @@
             self.send_headers()
         if self.length is not None:
             if len(data) > self.length:
-                raise AssertionError("Content-length header sent, but more bytes than specified are being written.")
+                raise AssertionError("Content-length header sent, but more "
+                                     "bytes than specified are being written.")
             self.length = self.length - len(data)
         self.wfile.write(data)
         self.wfile.flush()