source: py-scraping/mechanize/_urllib2.py@ 114

Last change on this file since 114 was 106, checked in by Rick van der Zwet, 15 years ago

Initial commit...

File size: 1.4 KB
Line 
1# urllib2 work-alike interface
2# ...from urllib2...
3from urllib2 import \
4 URLError, \
5 HTTPError, \
6 BaseHandler, \
7 UnknownHandler, \
8 FTPHandler, \
9 CacheFTPHandler
10# ...and from mechanize
11from _auth import \
12 HTTPPasswordMgr, \
13 HTTPPasswordMgrWithDefaultRealm, \
14 AbstractBasicAuthHandler, \
15 AbstractDigestAuthHandler, \
16 HTTPProxyPasswordMgr, \
17 ProxyHandler, \
18 ProxyBasicAuthHandler, \
19 ProxyDigestAuthHandler, \
20 HTTPBasicAuthHandler, \
21 HTTPDigestAuthHandler, \
22 HTTPSClientCertMgr
23from _debug import \
24 HTTPResponseDebugProcessor, \
25 HTTPRedirectDebugProcessor
26from _file import \
27 FileHandler
28# crap ATM
29## from _gzip import \
30## HTTPGzipProcessor
31from _http import \
32 HTTPHandler, \
33 HTTPDefaultErrorHandler, \
34 HTTPRedirectHandler, \
35 HTTPEquivProcessor, \
36 HTTPCookieProcessor, \
37 HTTPRefererProcessor, \
38 HTTPRefreshProcessor, \
39 HTTPErrorProcessor, \
40 HTTPRobotRulesProcessor, \
41 RobotExclusionError
42import httplib
43if hasattr(httplib, 'HTTPS'):
44 from _http import HTTPSHandler
45del httplib
46from _opener import OpenerDirector, \
47 SeekableResponseOpener, \
48 build_opener, install_opener, urlopen
49from _request import \
50 Request
51from _seek import \
52 SeekableProcessor
53from _upgrade import \
54 HTTPRequestUpgradeProcessor, \
55 ResponseUpgradeProcessor
Note: See TracBrowser for help on using the repository browser.