Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/request.py @ 5922:df7f66f290b9
hgweb: cleanup buglet introduced in 956afc025c0f
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 22 Jan 2008 09:11:06 +0100 |
parents | 956afc025c0f |
children | 15ef6b9c1f2f |
comparison
equal
deleted
inserted
replaced
5921:549a7ebe1607 | 5922:df7f66f290b9 |
---|---|
34 return self.inp.read(count) | 34 return self.inp.read(count) |
35 | 35 |
36 def start_response(self, status): | 36 def start_response(self, status): |
37 if self._start_response is not None: | 37 if self._start_response is not None: |
38 if not self.headers: | 38 if not self.headers: |
39 raise RuntimeError("request.write called before headers sent" + | 39 raise RuntimeError("request.write called before headers sent") |
40 " (%s)." % thing) | |
41 | 40 |
42 if isinstance(status, ErrorResponse): | 41 if isinstance(status, ErrorResponse): |
43 status = statusmessage(status.code) | 42 status = statusmessage(status.code) |
44 elif isinstance(status, int): | 43 elif isinstance(status, int): |
45 status = statusmessage(status) | 44 status = statusmessage(status) |