comparison mercurial/hgweb/protocol.py @ 34509:e21f274cccea

hgweb: in protocol adapter, avoid control reaching end of non-void function This greatly confounded some Python 3 porting work, once it was managing to get this far. Differential Revision: https://phab.mercurial-scm.org/D962
author Augie Fackler <augie@google.com>
date Thu, 05 Oct 2017 14:12:51 -0400
parents 3c91cc0c5fde
children c23fa3103925
comparison
equal deleted inserted replaced
34508:b521b3a79afd 34509:e21f274cccea
13 from .common import ( 13 from .common import (
14 HTTP_OK, 14 HTTP_OK,
15 ) 15 )
16 16
17 from .. import ( 17 from .. import (
18 error,
18 util, 19 util,
19 wireproto, 20 wireproto,
20 ) 21 )
21 stringio = util.stringio 22 stringio = util.stringio
22 23
197 return [] 198 return []
198 elif isinstance(rsp, wireproto.ooberror): 199 elif isinstance(rsp, wireproto.ooberror):
199 rsp = rsp.message 200 rsp = rsp.message
200 req.respond(HTTP_OK, HGERRTYPE, body=rsp) 201 req.respond(HTTP_OK, HGERRTYPE, body=rsp)
201 return [] 202 return []
203 raise error.ProgrammingError('hgweb.protocol internal failure', rsp)