Fix set_handle_gzip not working with modern mechanize

This commit is contained in:
Kovid Goyal 2021-08-01 10:20:22 +05:30
parent 4db5335471
commit 73792eeae4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -106,10 +106,10 @@ class Browser(B):
self._clone_actions['set_handle_equiv'] = ('set_handle_equiv', self._clone_actions['set_handle_equiv'] = ('set_handle_equiv',
args, kwargs) args, kwargs)
def set_handle_gzip(self, handle): def set_handle_gzip(self, *args, **kwargs):
B._set_handler(self, '_gzip', handle) B.set_handle_gzip(self, *args, **kwargs)
self._clone_actions['set_handle_gzip'] = ('set_handle_gzip', self._clone_actions['set_handle_gzip'] = ('set_handle_gzip',
(handle,), {}) args, kwargs)
def set_debug_redirects(self, *args, **kwargs): def set_debug_redirects(self, *args, **kwargs):
B.set_debug_redirects(self, *args, **kwargs) B.set_debug_redirects(self, *args, **kwargs)