1 # Import names so that they can be imported directly from the package, like
3 #from ClientCookie import <whatever>
12 # don't edit these here: do eg.
13 # import ClientCookie; ClientCookie.HTTP_DEBUG = 1
14 DEBUG_STREAM = sys.stderr
15 CLIENTCOOKIE_DEBUG = False
16 REDIRECT_DEBUG = False
19 from _ClientCookie import VERSION, __doc__, \
21 CookiePolicy, DefaultCookiePolicy, \
23 from _MozillaCookieJar import MozillaCookieJar
24 from _MSIECookieJar import MSIECookieJar
26 from urllib2 import AbstractHTTPHandler
30 from ClientCookie._urllib2_support import \
31 HTTPHandler, build_opener, install_opener, urlopen, \
33 from ClientCookie._urllib2_support import \
34 OpenerDirector, BaseProcessor, \
35 HTTPRequestUpgradeProcessor, \
36 HTTPEquivProcessor, SeekableProcessor, HTTPCookieProcessor, \
37 HTTPRefererProcessor, HTTPStandardHeadersProcessor, \
38 HTTPRefreshProcessor, HTTPErrorProcessor, \
39 HTTPResponseDebugProcessor
42 if hasattr(httplib, 'HTTPS'):
43 from ClientCookie._urllib2_support import HTTPSHandler
44 del AbstractHTTPHandler, httplib
45 from _Util import http2time