import time
import requests
-import six
from urllib.parse import quote, urlencode
from tweepy.error import is_rate_limit_error_message, RateLimitError, TweepError
auth=auth,
proxies=self.api.proxy)
except Exception as e:
- six.reraise(TweepError, TweepError('Failed to send request: %s' % e), sys.exc_info()[2])
+ raise TweepError('Failed to send request: %s' % e).with_traceback(sys.exc_info()[2])
rem_calls = resp.headers.get('x-rate-limit-remaining')
from threading import Thread
from time import sleep
-import six
from requests.exceptions import Timeout
from tweepy.api import API
if exc_info:
# call a handler first so that the exception can be logged.
self.listener.on_exception(exc_info[1])
- six.reraise(*exc_info)
+ raise exc_info[1]
def _data(self, data):
if self.listener.on_data(data) is False: