mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix set_handle_gzip not working with modern mechanize
This commit is contained in:
parent
4db5335471
commit
73792eeae4
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user