diff --git a/tweepy/api.py b/tweepy/api.py index 4751464a1..41ccea5b1 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -19,7 +19,7 @@ def __init__(self, auth_handler=None, host='api.twitter.com', upload_host='upload.twitter.com', cache=None, api_root='/1.1', upload_root='/1.1', retry_count=0, retry_delay=0, retry_errors=None, timeout=60, - parser=None, compression=False, wait_on_rate_limit=False, + parser=None, wait_on_rate_limit=False, wait_on_rate_limit_notify=False, proxy=''): """ API instance constructor @@ -39,7 +39,6 @@ def __init__(self, auth_handler=None, seconds, default: 60 :param parser: ModelParser instance to parse the responses, default: None - :param compression: If the response is compressed, default: False :param wait_on_rate_limit: If the api wait when it hits the rate limit, default: False :param wait_on_rate_limit_notify: If the api print a notification when @@ -54,7 +53,6 @@ def __init__(self, auth_handler=None, self.api_root = api_root self.upload_root = upload_root self.cache = cache - self.compression = compression self.retry_count = retry_count self.retry_delay = retry_delay self.retry_errors = retry_errors diff --git a/tweepy/binder.py b/tweepy/binder.py index 2452433e5..96a276f5a 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -154,10 +154,6 @@ def execute(self): if self.api.auth: auth = self.api.auth.apply_auth() - # Request compression if configured - if self.api.compression: - self.headers['Accept-encoding'] = 'gzip' - # Execute request try: resp = self.session.request(self.method,