mercurial/hgweb/request.py
changeset 45942 89a2afe31e82
parent 45004 2632c1ed8f34
child 46819 d4ba4d51f85f
equal deleted inserted replaced
45941:346af7687c6f 45942:89a2afe31e82
   620         assert self._bodywritefn
   620         assert self._bodywritefn
   621         return offsettrackingwriter(self._bodywritefn)
   621         return offsettrackingwriter(self._bodywritefn)
   622 
   622 
   623 
   623 
   624 def wsgiapplication(app_maker):
   624 def wsgiapplication(app_maker):
   625     '''For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
   625     """For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
   626     can and should now be used as a WSGI application.'''
   626     can and should now be used as a WSGI application."""
   627     application = app_maker()
   627     application = app_maker()
   628 
   628 
   629     def run_wsgi(env, respond):
   629     def run_wsgi(env, respond):
   630         return application(env, respond)
   630         return application(env, respond)
   631 
   631