1from __future__ import absolute_import
2# urllib2 work-alike interface
3# ...from urllib2...
4from .polyglot import HTTPError, URLError
5
6# ...and from mechanize
7from ._auth import HTTPProxyPasswordMgr, HTTPSClientCertMgr
8from ._debug import HTTPRedirectDebugProcessor, HTTPResponseDebugProcessor
9from ._http import (HTTPEquivProcessor, HTTPRefererProcessor,
10                    HTTPRefreshProcessor, HTTPRobotRulesProcessor,
11                    RobotExclusionError)
12from ._opener import (OpenerDirector, SeekableResponseOpener, build_opener,
13                      install_opener, urlopen)
14from ._request import Request
15# crap ATM
16# from _gzip import \
17# HTTPGzipProcessor
18from ._urllib2_fork import (
19    AbstractBasicAuthHandler, AbstractDigestAuthHandler, BaseHandler,
20    CacheFTPHandler, FileHandler, FTPHandler, HTTPBasicAuthHandler,
21    HTTPCookieProcessor, HTTPDefaultErrorHandler, HTTPDigestAuthHandler,
22    HTTPErrorProcessor, HTTPHandler, HTTPPasswordMgr,
23    HTTPPasswordMgrWithDefaultRealm, HTTPRedirectHandler, HTTPSHandler,
24    ProxyBasicAuthHandler, ProxyDigestAuthHandler, ProxyHandler,
25    UnknownHandler)
26__all__ = [
27    'URLError',
28    'HTTPError',
29    'HTTPSClientCertMgr',
30    'HTTPProxyPasswordMgr',
31    'HTTPRedirectDebugProcessor',
32    'HTTPRobotRulesProcessor',
33    'HTTPResponseDebugProcessor',
34    'HTTPRefreshProcessor',
35    'HTTPRefererProcessor',
36    'HTTPEquivProcessor',
37    'RobotExclusionError',
38    'OpenerDirector',
39    'build_opener',
40    'SeekableResponseOpener',
41    'install_opener',
42    'urlopen',
43    'Request',
44    'HTTPHandler',
45    'HTTPSHandler',
46    'AbstractBasicAuthHandler',
47    'ProxyHandler',
48    'HTTPDefaultErrorHandler',
49    'ProxyDigestAuthHandler',
50    'HTTPDigestAuthHandler',
51    'FTPHandler',
52    'HTTPPasswordMgrWithDefaultRealm',
53    'CacheFTPHandler',
54    'HTTPErrorProcessor',
55    'AbstractDigestAuthHandler',
56    'HTTPRedirectHandler',
57    'UnknownHandler',
58    'HTTPCookieProcessor',
59    'BaseHandler',
60    'HTTPBasicAuthHandler',
61    'ProxyBasicAuthHandler',
62    'HTTPPasswordMgr',
63    'FileHandler',
64]
65