Skip to content

Commit

Permalink
Remove API.compression
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jan 28, 2021
1 parent 4ebe76e commit 4590c7a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions tweepy/api.py
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions tweepy/binder.py
Expand Up @@ -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,
Expand Down

0 comments on commit 4590c7a

Please sign in to comment.