From 5229a51713456824689d16b2ab07807b593ade30 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 25 Dec 2020 18:48:27 -0600 Subject: [PATCH] Remove extraneous changes --- tweepy/api.py | 19 ++----------------- tweepy/models.py | 5 ----- 2 files changed, 2 insertions(+), 22 deletions(-) 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, -- 2.25.1