File: _urllib2.py

package info (click to toggle)
python-mechanize 1%3A0.4.10%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,316 kB
  • sloc: python: 16,656; makefile: 11; sh: 4
file content (64 lines) | stat: -rw-r--r-- 2,067 bytes parent folder | download | duplicates (4)
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',
]