Mercurial > hg
diff mercurial/hgweb/common.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 | 46e2c57026bc |
children | 1dde4914fb6c |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py Fri Sep 04 05:57:58 2015 -0400 +++ b/mercurial/hgweb/common.py Tue Sep 08 14:56:29 2015 -0400 @@ -80,12 +80,9 @@ def __init__(self, code, message=None, headers=[]): if message is None: message = _statusmessage(code) - Exception.__init__(self) + Exception.__init__(self, message) self.code = code - self.message = message self.headers = headers - def __str__(self): - return self.message class continuereader(object): def __init__(self, f, write):