#NEWLINE# def _lookup_req_object( name ) : #NEWLINE# #INDENT# top = _request_ctx_stack . top #NEWLINE# if ( top is None ) : #NEWLINE# #INDENT# raise RuntimeError ( 'working outside of request context' ) #NEWLINE# #UNINDENT# return getattr ( top , name )