Fullscreen support, UI fixes, reset improved
[smpy-maemo.git] / mechanize / _urllib2.py
blobd35df216c8b0b0ca19a7513bad953024ba36d7d9
1 # urllib2 work-alike interface
2 # ...from urllib2...
3 from urllib2 import \
4 URLError, \
5 HTTPError, \
6 GopherError
7 # ...and from mechanize
8 from _opener import OpenerDirector, \
9 SeekableResponseOpener, \
10 build_opener, install_opener, urlopen
11 from _auth import \
12 HTTPPasswordMgr, \
13 HTTPPasswordMgrWithDefaultRealm, \
14 AbstractBasicAuthHandler, \
15 AbstractDigestAuthHandler, \
16 HTTPProxyPasswordMgr, \
17 ProxyHandler, \
18 ProxyBasicAuthHandler, \
19 ProxyDigestAuthHandler, \
20 HTTPBasicAuthHandler, \
21 HTTPDigestAuthHandler, \
22 HTTPSClientCertMgr
23 from _request import \
24 Request
25 from _http import \
26 RobotExclusionError
28 # handlers...
29 # ...from urllib2...
30 from urllib2 import \
31 BaseHandler, \
32 UnknownHandler, \
33 FTPHandler, \
34 CacheFTPHandler, \
35 FileHandler, \
36 GopherHandler
37 # ...and from mechanize
38 from _http import \
39 HTTPHandler, \
40 HTTPDefaultErrorHandler, \
41 HTTPRedirectHandler, \
42 HTTPEquivProcessor, \
43 HTTPCookieProcessor, \
44 HTTPRefererProcessor, \
45 HTTPRefreshProcessor, \
46 HTTPErrorProcessor, \
47 HTTPRobotRulesProcessor
48 from _upgrade import \
49 HTTPRequestUpgradeProcessor, \
50 ResponseUpgradeProcessor
51 from _debug import \
52 HTTPResponseDebugProcessor, \
53 HTTPRedirectDebugProcessor
54 from _seek import \
55 SeekableProcessor
56 # crap ATM
57 ## from _gzip import \
58 ## HTTPGzipProcessor
59 import httplib
60 if hasattr(httplib, 'HTTPS'):
61 from _http import HTTPSHandler
62 del httplib