mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
8cda640dd1
commit
05312e6389
@ -11,7 +11,11 @@ from cookielib import CookieJar
|
|||||||
from mechanize import Browser as B
|
from mechanize import Browser as B
|
||||||
|
|
||||||
class Browser(B):
|
class Browser(B):
|
||||||
'A cloneable mechanize browser'
|
'''
|
||||||
|
A cloneable mechanize browser. Useful for multithreading. The idea is that
|
||||||
|
each thread has a browser clone. Every clone uses the same thread safe
|
||||||
|
cookie jar. All clones share the same browser configuration.
|
||||||
|
'''
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._clone_actions = {}
|
self._clone_actions = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user