# HG changeset patch # User Dirkjan Ochtman # Date 1200682418 -3600 # Node ID 41a3fce17625e6c675ff84ce848bff27b01a70f8 # Parent dd1998dd6f3b6f396a0445c41ff8c4062d2f7419 hgweb: return iterable, add deprecation note diff -r dd1998dd6f3b -r 41a3fce17625 mercurial/hgweb/request.py --- 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