From bb2eea581f5746f71c18e904f744241f6f1151d1 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 11 Jan 2021 12:30:41 -0600 Subject: [PATCH] Remove API._lookup_friendships --- tweepy/api.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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): -- 2.25.1