author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
Fri, 18 Jan 2008 19:53:38 +0100 | |
changeset 5887 | 41a3fce17625 |
parent 5886 | dd1998dd6f3b |
child 5888 | 956afc025c0f |
--- a/mercurial/hgweb/request.py Fri Jan 18 19:53:38 2008 +0100 +++ b/mercurial/hgweb/request.py Fri Jan 18 19:53:38 2008 +0100 @@ -84,7 +84,9 @@ self.header(headers) def wsgiapplication(app_maker): + '''For compatibility with old CGI scripts. A plain hgweb() or hgwebdir() + can and should now be used as a WSGI application.''' application = app_maker() def run_wsgi(env, respond): - application(env, respond) + return application(env, respond) return run_wsgi