def run_bare_wsgi_app(application):
 env = dict(os.environ)
 env['wsgi.input'] = sys.stdin
 env['wsgi.errors'] = sys.stderr
 env['wsgi.version'] = (1, 0)
 env['wsgi.run_once'] = True
 env['wsgi.url_scheme'] = wsgiref.util.guess_scheme(env)
 env['wsgi.multithread'] = False
 env['wsgi.multiprocess'] = False
 result = application(env, _start_response)
 if (result is not None):
  for data in result:
   sys.stdout.write(data)

def run_bare_wsgi_app ( application ) : env = dict ( os . environ ) env [ 'wsgi.input' ] = sys . stdin env [ 'wsgi.errors' ] = sys . stderr env [ 'wsgi.version' ] = ( 1 , 0 ) env [ 'wsgi.run_once' ] = True env [ 'wsgi.url_scheme' ] = wsgiref . util . guess_scheme ( env ) env [ 'wsgi.multithread' ] = False env [ 'wsgi.multiprocess' ] = False result = application ( env , _start_response ) if ( result is not None ) : for data in result : sys . stdout . write ( data )
like run_wsgi_app() but doesnt add wsgi middleware .