This file is indexed.

/usr/lib/python2.7/dist-packages/pecan/scaffolds/rest-api/+package+/app.py_tmpl is in python-pecan 0.6.1-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from pecan import make_app
from ${package} import model
from ${package}.errors import JSONErrorHook


def setup_app(config):

    model.init_model()
    app_conf = dict(config.app)

    return make_app(
        app_conf.pop('root'),
        logging=getattr(config, 'logging', {}),
        hooks=[JSONErrorHook()],
        **app_conf
    )