1 # urllib2 work-alike interface
7 # ...and from mechanize
8 from _opener
import OpenerDirector
, \
9 SeekableResponseOpener
, \
10 build_opener
, install_opener
, urlopen
13 HTTPPasswordMgrWithDefaultRealm
, \
14 AbstractBasicAuthHandler
, \
15 AbstractDigestAuthHandler
, \
16 HTTPProxyPasswordMgr
, \
18 ProxyBasicAuthHandler
, \
19 ProxyDigestAuthHandler
, \
20 HTTPBasicAuthHandler
, \
21 HTTPDigestAuthHandler
, \
23 from _request
import \
37 # ...and from mechanize
40 HTTPDefaultErrorHandler
, \
41 HTTPRedirectHandler
, \
43 HTTPCookieProcessor
, \
44 HTTPRefererProcessor
, \
45 HTTPRefreshProcessor
, \
47 HTTPRobotRulesProcessor
48 from _upgrade
import \
49 HTTPRequestUpgradeProcessor
, \
50 ResponseUpgradeProcessor
52 HTTPResponseDebugProcessor
, \
53 HTTPRedirectDebugProcessor
57 ## from _gzip import \
60 if hasattr(httplib
, 'HTTPS'):
61 from _http
import HTTPSHandler