def clear_user_history(user, domain='all'):
 for key in redis_key(user, domain):
  client.delete(key)

def clear_user_history ( user , domain = 'all' ) : for key in redis_key ( user , domain ) : client . delete ( key )
this is only used by test code now .