mercurial/hgweb/hgwebdir_mod.py
changeset 8663 45f626a39def
parent 8621 13613221caf1
child 8859 580a79dde2a3
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)