From 4d31c1b5ee7b94344fd83cdab12ec8c3a4b7a71c Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 26 Dec 2020 02:19:22 -0600 Subject: [PATCH] Remove unnecessary attributes for super --- tests/test_streaming.py | 2 +- tweepy/error.py | 2 +- tweepy/models.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_streaming.py b/tests/test_streaming.py index 3b0a261..c64b516 100644 --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -14,7 +14,7 @@ from tweepy.streaming import ReadBuffer, Stream, StreamListener class MockStreamListener(StreamListener): def __init__(self, test_case): - super(MockStreamListener, self).__init__() + super().__init__() self.test_case = test_case self.status_count = 0 self.status_stop_count = 0 diff --git a/tweepy/error.py b/tweepy/error.py index 8541b8d..1fbf1ca 100644 --- a/tweepy/error.py +++ b/tweepy/error.py @@ -10,7 +10,7 @@ class TweepError(Exception): self.reason = str(reason) self.response = response self.api_code = api_code - super(TweepError, self).__init__(reason) + super().__init__(reason) def __str__(self): return self.reason diff --git a/tweepy/models.py b/tweepy/models.py index a734acb..f330a7f 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -8,7 +8,7 @@ from tweepy.utils import parse_a_href, parse_datetime, parse_html_value class ResultSet(list): """A list like object that holds results from a Twitter API query.""" def __init__(self, max_id=None, since_id=None): - super(ResultSet, self).__init__() + super().__init__() self._max_id = max_id self._since_id = since_id -- 2.25.1