view 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
line wrap: on
line source

__all__ = ['wsgi_app', 'make_app']


def wsgi_app(config_file):
    """wsgi application"""
    from mercurial import demandimport; demandimport.enable()
    from mercurial.hgweb.hgwebdir_mod import hgwebdir
    application = hgwebdir(config_file)
    return application


def make_app(global_conf, config_file):
    """make an app for paster"""
    return wsgi_app(config_file)