def _get_flow_for_token(csrf_token, request):
 flow_pickle = request.session.get(_FLOW_KEY.format(csrf_token), None)
 return (None if (flow_pickle is None) else jsonpickle.decode(flow_pickle))

def _get_flow_for_token ( csrf_token , request ) : flow_pickle = request . session . get ( _FLOW_KEY . format ( csrf_token ) , None ) return ( None if ( flow_pickle is None ) else jsonpickle . decode ( flow_pickle ) )
retrieves the flow instance associated with a given csrf token from the flask session .