mercurial/hgweb/hgweb_mod.py
changeset 8663 45f626a39def
parent 8390 beae42f3d93b
child 8859 580a79dde2a3
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)