diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -68,7 +68,8 @@ class hgweb(object): def run(self): if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): - raise RuntimeError("This function is only intended to be called while running as a CGI script.") + raise RuntimeError("This function is only intended to be " + "called while running as a CGI script.") import mercurial.hgweb.wsgicgi as wsgicgi wsgicgi.launch(self) diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -92,7 +92,8 @@ class hgwebdir(object): def run(self): if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): - raise RuntimeError("This function is only intended to be called while running as a CGI script.") + raise RuntimeError("This function is only intended to be " + "called while running as a CGI script.") import mercurial.hgweb.wsgicgi as wsgicgi wsgicgi.launch(self) diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py +++ b/mercurial/hgweb/server.py @@ -69,8 +69,8 @@ class _hgwebhandler(object, BaseHTTPServ 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 @@ class _hgwebhandler(object, BaseHTTPServ 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 @@ class _hgwebhandler(object, BaseHTTPServ 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() diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1402,7 +1402,9 @@ class localrepository(repo.repository): cg = remote.changegroup(fetch, 'pull') else: if not remote.capable('changegroupsubset'): - raise util.Abort(_("Partial pull cannot be done because other repository doesn't support changegroupsubset.")) + raise util.Abort(_("Partial pull cannot be done because " + "other repository doesn't support " + "changegroupsubset.")) cg = remote.changegroupsubset(fetch, heads, 'pull') return self.addchangegroup(cg, 'pull', remote.url()) finally: