This file is indexed.

/usr/share/pyshared/myghty/paste/wsgiapp.py is in python-myghty 1.1-5.

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
17
18
19
20
21
22
23
24
25
import sys, os

from paste.util import import_string
import myghty.http.WSGIHandler as WSGIHandler
from myghty.resolver import *

from myghty.ext.routeresolver import RoutesResolver

def make_myghty_app(global_conf, 
                    package_name=None,
                    root_path=None,
                    **app_conf):
    if package_name:
        package = package_name
        if isinstance(package, (str, unicode)):
            package = import_string.simple_import(package+'.webconfig')
    
    config = package.config

    def myghtyapp(environ, start_response):
        return WSGIHandler.handle(environ, start_response,
                                  **config
                                  )
    return myghtyapp