From: Harmon Date: Sat, 26 Dec 2020 00:48:27 +0000 (-0600) Subject: Remove extraneous changes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5229a51713456824689d16b2ab07807b593ade30;p=tweepy.git Remove extraneous changes --- diff --git a/tweepy/api.py b/tweepy/api.py index 3f25235..4a2599c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1034,21 +1034,6 @@ class API(object): require_auth=True ) - @property - def lists_ownerships(self): - """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/get-lists-ownerships - :allowed_param: 'screen_name', 'user_id', - 'cursor', 'count' - """ - return bind_api( - api=self, - path='/lists/ownerships.json', - payload_type='list', payload_list=True, - allowed_param=['screen_name', 'user_id', - 'cursor', 'count'], - require_auth=True - ) - @property def lists_subscriptions(self): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscriptions @@ -1173,14 +1158,14 @@ class API(object): def list_members(self): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-members :allowed_param: 'owner_screen_name', 'slug', 'list_id', 'owner_id', - 'cursor', 'count' + 'cursor' """ return bind_api( api=self, path='/lists/members.json', payload_type='user', payload_list=True, allowed_param=['owner_screen_name', 'slug', 'list_id', 'owner_id', - 'cursor', 'count'] + 'cursor'] ) @property diff --git a/tweepy/models.py b/tweepy/models.py index 27bbaa1..01312fb 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -200,11 +200,6 @@ class User(Model): *args, **kwargs) - def lists_ownerships(self, *args, **kwargs): - return self._api.lists_ownerships(user_id=self.id, - *args, - **kwargs) - def lists_subscriptions(self, *args, **kwargs): return self._api.lists_subscriptions(user_id=self.id, *args,