From 6de9b8591983f5a991860e444866e5ebe6c80907 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 11 Jan 2021 12:55:14 -0600 Subject: [PATCH] Remove API._remove_list_members --- tweepy/api.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 8b36071..7ea77fe 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1120,13 +1120,6 @@ class API: def remove_list_members(self, screen_name=None, user_id=None, slug=None, list_id=None, owner_id=None, owner_screen_name=None): - """ Perform bulk remove of list members from user ID or screenname """ - return self._remove_list_members(list_to_csv(screen_name), - list_to_csv(user_id), slug, list_id, - owner_id, owner_screen_name) - - @property - def _remove_list_members(self): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-members-destroy_all :allowed_param: 'screen_name', 'user_id', 'slug', 'list_id', 'owner_id', 'owner_screen_name' @@ -1139,7 +1132,8 @@ class API: allowed_param=['screen_name', 'user_id', 'slug', 'list_id', 'owner_id', 'owner_screen_name'], require_auth=True - ) + )(list_to_csv(screen_name), list_to_csv(user_id), slug, list_id, + owner_id, owner_screen_name) @property def list_members(self): -- 2.25.1