def get_application(*args):
 opts_tuple = args
 def wsgi_app(environ, start_response):
  (root, _, conf) = (opts_tuple or bootstrap_app())
  cherrypy.config.update({'environment': 'embedded'})
  cherrypy.tree.mount(root, '/', conf)
  return cherrypy.tree(environ, start_response)
 return wsgi_app

def get_application ( * args ) : opts_tuple = args def wsgi_app ( environ , start_response ) : ( root , _ , conf ) = ( opts_tuple or bootstrap_app ( ) ) cherrypy . config . update ( { 'environment' : 'embedded' } ) cherrypy . tree . mount ( root , '/' , conf ) return cherrypy . tree ( environ , start_response ) return wsgi_app
retrieves the application to feed into tornado .