comparison mercurial/hgweb/hgweb_mod.py @ 8663:45f626a39def

wrap string literals in error messages
author Martin Geisler <mg@lazybytes.net>
date Sun, 31 May 2009 01:30:16 +0200
parents beae42f3d93b
children 580a79dde2a3
comparison
equal deleted inserted replaced
8662:eaee3491ce11 8663:45f626a39def
66 self.allowpull = self.configbool("web", "allowpull", True) 66 self.allowpull = self.configbool("web", "allowpull", True)
67 self.encoding = self.config("web", "encoding", encoding.encoding) 67 self.encoding = self.config("web", "encoding", encoding.encoding)
68 68
69 def run(self): 69 def run(self):
70 if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): 70 if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."):
71 raise RuntimeError("This function is only intended to be called while running as a CGI script.") 71 raise RuntimeError("This function is only intended to be "
72 "called while running as a CGI script.")
72 import mercurial.hgweb.wsgicgi as wsgicgi 73 import mercurial.hgweb.wsgicgi as wsgicgi
73 wsgicgi.launch(self) 74 wsgicgi.launch(self)
74 75
75 def __call__(self, env, respond): 76 def __call__(self, env, respond):
76 req = wsgirequest(env, respond) 77 req = wsgirequest(env, respond)