From: Aaron Hill Date: Sat, 3 May 2014 16:07:26 +0000 (-0400) Subject: Merge branch 'master' of https://github.com/foutoucour/tweepy into foutoucour-master X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=90ca6e63c2645d9197b33ad2956604ead5821f97;p=tweepy.git Merge branch 'master' of https://github.com/foutoucour/tweepy into foutoucour-master Conflicts: tweepy/api.py --- 90ca6e63c2645d9197b33ad2956604ead5821f97 diff --cc tweepy/api.py index a5e09e1,0ab04d3..3df6ebc --- a/tweepy/api.py +++ b/tweepy/api.py @@@ -31,13 -31,18 +31,24 @@@ class API(object) self.retry_delay = retry_delay self.retry_errors = retry_errors self.timeout = timeout + self.wait_on_rate_limit = wait_on_rate_limit + self.wait_on_rate_limit_notify = wait_on_rate_limit_notify self.parser = parser or ModelParser() + self.proxy = {} + if proxy: + self.proxy['https'] = proxy + + # Attempt to explain more clearly the parser argument requirements + # https://github.com/tweepy/tweepy/issues/421 + # + parser_type = Parser + if not isinstance(self.parser, parser_type): + raise TypeError( + '"parser" argument has to be an instance of "{}". It is currently a {}.'.format( + parser_type.__name__, type(self.parser) + ) + ) + """ statuses/home_timeline """ home_timeline = bind_api( path = '/statuses/home_timeline.json',