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