Remove unnecessary attributes for super
authorHarmon <Harmon758@gmail.com>
Sat, 26 Dec 2020 08:19:22 +0000 (02:19 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 26 Dec 2020 08:19:28 +0000 (02:19 -0600)
tests/test_streaming.py
tweepy/error.py
tweepy/models.py

index 3b0a2615a6e108b032197f310fe5512de9c55c58..c64b516c3452cba1e46d0d61ac606e06427bb27e 100644 (file)
@@ -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
index 8541b8d6dd2758095bfb8d4db83e10323dacd9f1..1fbf1ca47133fa80e202c35de02dcb99ff45c464 100644 (file)
@@ -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
index a734acb794f77d3ff967f350fc0acbb0c012b6e7..f330a7f093dafa5f7e9952267ff55f0fe3d1c4f1 100644 (file)
@@ -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