From: Harmon Date: Sat, 26 Dec 2020 08:19:22 +0000 (-0600) Subject: Remove unnecessary attributes for super X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4d31c1b5ee7b94344fd83cdab12ec8c3a4b7a71c;p=tweepy.git Remove unnecessary attributes for super --- 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