comparison mercurial/hgweb/request.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 9df8c729e2e7
children 7c1b4840c2cd
comparison
equal deleted inserted replaced
26199:5411059d93f8 26200:461e7b700fdf
98 # it MUST NOT include any headers other than these and no 98 # it MUST NOT include any headers other than these and no
99 # body 99 # body
100 self.headers = [(k, v) for (k, v) in self.headers if 100 self.headers = [(k, v) for (k, v) in self.headers if
101 k in ('Date', 'ETag', 'Expires', 101 k in ('Date', 'ETag', 'Expires',
102 'Cache-Control', 'Vary')] 102 'Cache-Control', 'Vary')]
103 status = statusmessage(status.code, status.message) 103 status = statusmessage(status.code, str(status))
104 elif status == 200: 104 elif status == 200:
105 status = '200 Script output follows' 105 status = '200 Script output follows'
106 elif isinstance(status, int): 106 elif isinstance(status, int):
107 status = statusmessage(status) 107 status = statusmessage(status)
108 108