Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgwebdir_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 | 13613221caf1 |
children | 580a79dde2a3 |
comparison
equal
deleted
inserted
replaced
8662:eaee3491ce11 | 8663:45f626a39def |
---|---|
90 self.repos.sort() | 90 self.repos.sort() |
91 self.lastrefresh = time.time() | 91 self.lastrefresh = time.time() |
92 | 92 |
93 def run(self): | 93 def run(self): |
94 if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): | 94 if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): |
95 raise RuntimeError("This function is only intended to be called while running as a CGI script.") | 95 raise RuntimeError("This function is only intended to be " |
96 "called while running as a CGI script.") | |
96 import mercurial.hgweb.wsgicgi as wsgicgi | 97 import mercurial.hgweb.wsgicgi as wsgicgi |
97 wsgicgi.launch(self) | 98 wsgicgi.launch(self) |
98 | 99 |
99 def __call__(self, env, respond): | 100 def __call__(self, env, respond): |
100 req = wsgirequest(env, respond) | 101 req = wsgirequest(env, respond) |