def remember(request, userid=_marker, **kw):
 if (userid is _marker):
  principal = kw.pop('principal', _marker)
  if (principal is _marker):
   raise TypeError("remember() missing 1 required positional argument: 'userid'")
  else:
   deprecated('principal', 'The "principal" argument was deprecated in Pyramid 1.6. It will be removed in Pyramid 1.9. Use the "userid" argument instead.')
   userid = principal
 policy = _get_authentication_policy(request)
 if (policy is None):
  return []
 return policy.remember(request, userid, **kw)

def remember ( request , userid = _marker , ** kw ) : if ( userid is _marker ) : principal = kw . pop ( 'principal' , _marker ) if ( principal is _marker ) : raise TypeError ( "remember() missing 1 required positional argument: 'userid'" ) else : deprecated ( 'principal' , 'The "principal" argument was deprecated in Pyramid 1.6. It will be removed in Pyramid 1.9. Use the "userid" argument instead.' ) userid = principal policy = _get_authentication_policy ( request ) if ( policy is None ) : return [ ] return policy . remember ( request , userid , ** kw )
returns a sequence of header tuples (e .