This commit is contained in:
Kovid Goyal 2012-01-04 09:33:23 +05:30
parent 8cda640dd1
commit 05312e6389

View File

@ -11,7 +11,11 @@ from cookielib import CookieJar
from mechanize import Browser as 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):
self._clone_actions = {}