2 'AbstractBasicAuthHandler',
3 'AbstractDigestAuthHandler',
8 'ContentTooShortError',
12 'DefaultCookiePolicy',
22 'HTTPBasicAuthHandler',
23 'HTTPCookieProcessor',
24 'HTTPDefaultErrorHandler',
25 'HTTPDigestAuthHandler',
31 'HTTPPasswordMgrWithDefaultRealm',
32 'HTTPProxyPasswordMgr',
33 'HTTPRedirectDebugProcessor',
34 'HTTPRedirectHandler',
35 'HTTPRefererProcessor',
36 'HTTPRefreshProcessor',
37 'HTTPRequestUpgradeProcessor',
38 'HTTPResponseDebugProcessor',
39 'HTTPRobotRulesProcessor',
54 'ProxyBasicAuthHandler',
55 'ProxyDigestAuthHandler',
58 'ResponseUpgradeProcessor',
59 'RobotExclusionError',
65 'SeekableResponseOpener',
72 'XHTMLCompatibleHeadParser',
79 'response_seek_wrapper', # XXX deprecate in public interface?
80 'seek_wrapped_response' # XXX should probably use this internally in place of response_seek_wrapper()
85 from _mechanize
import __version__
87 # high-level stateful browser-style interface
88 from _mechanize
import \
90 BrowserStateError
, LinkNotFoundError
, FormNotFoundError
92 # configurable URL-opener interface
93 from _useragent
import UserAgentBase
, UserAgent
97 Factory
, DefaultFactory
, RobustFactory
, \
98 FormsFactory
, LinksFactory
, TitleFactory
, \
99 RobustFormsFactory
, RobustLinksFactory
, RobustTitleFactory
101 # urllib2 work-alike interface (part from mechanize, part from urllib2)
102 # This is a superset of the urllib2 interface.
103 from _urllib2
import *
106 from _opener
import ContentTooShortError
, OpenerFactory
, urlretrieve
107 from _util
import http2time
as str2time
108 from _response
import \
109 response_seek_wrapper
, seek_wrapped_response
, make_response
110 from _http
import HeadParser
112 from _http
import XHTMLCompatibleHeadParser
117 from _clientcookie
import Cookie
, CookiePolicy
, DefaultCookiePolicy
, \
118 CookieJar
, FileCookieJar
, LoadError
, request_host
119 from _lwpcookiejar
import LWPCookieJar
, lwp_cookie_str
120 from _mozillacookiejar
import MozillaCookieJar
121 from _msiecookiejar
import MSIECookieJar
123 # If you hate the idea of turning bugs into warnings, do:
124 # import mechanize; mechanize.USE_BARE_EXCEPT = False
125 USE_BARE_EXCEPT
= True