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
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
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