comparison hgpaste/factory.py @ 7:0dc878f8a15f

whitespace
author Jeff Hammel <k0scist@gmail.com>
date Tue, 24 Nov 2020 08:19:30 -0800
parents 043088856f0d
children 49e931b5c8e2
comparison
equal deleted inserted replaced
6:97096204574c 7:0dc878f8a15f
1 __all__ = ['wsgi_app', 'make_app'] 1 __all__ = ['wsgi_app', 'make_app']
2
2 3
3 def wsgi_app(config_file): 4 def wsgi_app(config_file):
4 """wsgi application""" 5 """wsgi application"""
5 from mercurial import demandimport; demandimport.enable() 6 from mercurial import demandimport; demandimport.enable()
6 from mercurial.hgweb.hgwebdir_mod import hgwebdir 7 from mercurial.hgweb.hgwebdir_mod import hgwebdir
7 application = hgwebdir(config_file) 8 application = hgwebdir(config_file)
8 return application 9 return application
10
9 11
10 def make_app(global_conf, config_file): 12 def make_app(global_conf, config_file):
11 """make an app for paster""" 13 """make an app for paster"""
12 return wsgi_app(config_file) 14 return wsgi_app(config_file)