# HG changeset patch # User Dirkjan Ochtman # Date 1235487689 -3600 # Node ID 43edbd8cc1e0fd1a812185ee27537f9fae7bb0c1 # Parent 57fee79e5588cc268a4f044c0a5e45c65d014f50 contrib: bring hgwebdir.fcgi up-to-date with current WSGI practices diff -r 57fee79e5588 -r 43edbd8cc1e0 contrib/hgwebdir.fcgi --- a/contrib/hgwebdir.fcgi Sat Feb 21 17:46:06 2009 -0600 +++ b/contrib/hgwebdir.fcgi Tue Feb 24 16:01:29 2009 +0100 @@ -22,7 +22,6 @@ #os.environ["HGENCODING"] = "UTF-8" from mercurial.hgweb.hgwebdir_mod import hgwebdir -from mercurial.hgweb.request import wsgiapplication from flup.server.fcgi import WSGIServer # The config file looks like this. You can have paths to individual @@ -60,7 +59,4 @@ # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples # or use a dictionary with entries like 'virtual/path': '/real/path' -def make_web_app(): - return hgwebdir("hgweb.config") - -WSGIServer(wsgiapplication(make_web_app)).run() +WSGIServer(hgwebdir('hgweb.config')).run()