def _set_thread_safe_app():
 if (_local is not None):
  WSGIApplication.app = WSGIApplication.active_instance = _local('app')
  WSGIApplication.request = _local('request')

def _set_thread_safe_app ( ) : if ( _local is not None ) : WSGIApplication . app = WSGIApplication . active_instance = _local ( 'app' ) WSGIApplication . request = _local ( 'request' )
assigns wsgiapplication globals to a proxy pointing to thread-local .