def GetDefaultToken(token):
 if (token is None):
  token = default_token
 if (not isinstance(token, access_control.ACLToken)):
  raise access_control.UnauthorizedAccess('Token is not properly specified. It should be an instance of grr.lib.access_control.ACLToken()')
 return token

def GetDefaultToken ( token ) : if ( token is None ) : token = default_token if ( not isinstance ( token , access_control . ACLToken ) ) : raise access_control . UnauthorizedAccess ( 'Token is not properly specified. It should be an instance of grr.lib.access_control.ACLToken()' ) return token
returns the provided token or the default token .