From: Harmon Date: Mon, 11 Jan 2021 18:30:41 +0000 (-0600) Subject: Remove API._lookup_friendships X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bb2eea581f5746f71c18e904f744241f6f1151d1;p=tweepy.git Remove API._lookup_friendships --- diff --git a/tweepy/api.py b/tweepy/api.py index ef87b36..ef04558 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -532,12 +532,6 @@ class API: ) def lookup_friendships(self, user_ids=None, screen_names=None): - """ Perform bulk look up of friendships from user ID or screenname """ - return self._lookup_friendships(list_to_csv(user_ids), - list_to_csv(screen_names)) - - @property - def _lookup_friendships(self): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-lookup :allowed_param: 'user_id', 'screen_name' """ @@ -547,7 +541,7 @@ class API: payload_type='relationship', payload_list=True, allowed_param=['user_id', 'screen_name'], require_auth=True - ) + )(list_to_csv(user_ids), list_to_csv(screen_names)) @property def friends_ids(self):