Only show user-presets in favorite sidebar
[ardour.git] / tools / bug_tool / ClientCookie / __init__.py
1 # Import names so that they can be imported directly from the package, like
2 # this:
3 #from ClientCookie import <whatever>
4
5 try: True
6 except NameError:
7     True = 1
8     False = 0
9
10 import sys
11
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
17 HTTP_DEBUG = False
18
19 from _ClientCookie import VERSION, __doc__, \
20      CookieJar, Cookie, \
21      CookiePolicy, DefaultCookiePolicy, \
22      lwp_cookie_str
23 from _MozillaCookieJar import MozillaCookieJar
24 from _MSIECookieJar import MSIECookieJar
25 try:
26     from urllib2 import AbstractHTTPHandler
27 except ImportError:
28     pass
29 else:
30     from ClientCookie._urllib2_support import \
31          HTTPHandler, build_opener, install_opener, urlopen, \
32          HTTPRedirectHandler
33     from ClientCookie._urllib2_support import \
34          OpenerDirector, BaseProcessor, \
35          HTTPRequestUpgradeProcessor, \
36          HTTPEquivProcessor, SeekableProcessor, HTTPCookieProcessor, \
37          HTTPRefererProcessor, HTTPStandardHeadersProcessor, \
38          HTTPRefreshProcessor, HTTPErrorProcessor, \
39          HTTPResponseDebugProcessor
40
41     import httplib
42     if hasattr(httplib, 'HTTPS'):
43         from ClientCookie._urllib2_support import HTTPSHandler
44     del AbstractHTTPHandler, httplib
45 from _Util import http2time
46 str2time = http2time
47 del http2time
48
49 del sys