Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 26200:461e7b700fdf
hgweb: remove ErrorResponse.message
BaseException.message is deprecated:
https://www.python.org/dev/peps/pep-0352/#retracted-ideas
author | timeless@mozdev.org |
---|---|
date | Tue, 08 Sep 2015 14:56:29 -0400 |
parents | bf1b24785f13 |
children | 18e1c555ee49 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Fri Sep 04 05:57:58 2015 -0400 +++ b/mercurial/hgweb/hgweb_mod.py Tue Sep 08 14:56:29 2015 -0400 @@ -356,7 +356,7 @@ else: req.headers.append(('Connection', 'Close')) req.respond(inst, protocol.HGTYPE, - body='0\n%s\n' % inst.message) + body='0\n%s\n' % inst) return '' # translate user-visible url structure to internal structure @@ -439,7 +439,7 @@ if inst.code == HTTP_NOT_MODIFIED: # Not allowed to return a body on a 304 return [''] - return tmpl('error', error=inst.message) + return tmpl('error', error=str(inst)) def check_perm(self, rctx, req, op): for permhook in permhooks: