def get_auth(factory=Auth, key=_auth_registry_key, request=None):
 request = (request or webapp2.get_request())
 auth = request.registry.get(key)
 if (not auth):
  auth = request.registry[key] = factory(request)
 return auth

def get_auth ( factory = Auth , key = _auth_registry_key , request = None ) : request = ( request or webapp2 . get_request ( ) ) auth = request . registry . get ( key ) if ( not auth ) : auth = request . registry [ key ] = factory ( request ) return auth
returns an instance of :class:auth from the request registry .