Module Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Import alias Import alias Import alias Import alias Import alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad orelse Assign NameStore Call NameLoad Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Global identifier If CompareIs NameLoad NameLoad body Expr Call NameLoad Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Global identifier If BoolOpOr CompareIs NameLoad NameLoad UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Raise NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise ExceptHandler body Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr Slice Num If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Raise Call NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad BinOpMult Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Return Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body TryFinally body Return Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpMult NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore Dict For NameStore NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad If CompareIsNot NameLoad NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad While CompareGt NameLoad Num body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If CompareGt Call AttributeLoad NameLoad attr BinOpMult Num NameLoad body Return Num orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn NameLoad ListLoad Num Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num orelse Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad Assign NameStore BinOpSub NameLoad Call NameLoad Call AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str TupleLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Str orelse Assign NameStore Str If CompareIs NameLoad NameLoad body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad BinOpMult Num NameLoad If UnaryOpNot BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword NameLoad TryExcept body Assign NameStore SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Assert UnaryOpNot AttributeLoad NameLoad attr Assert CompareNotEq AttributeLoad NameLoad attr Num Assign NameStore NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
This module contains the HTTP fetcher interface and several implementations.
 N/A __all__ N/A fetch getDefaultFetcher setDefaultFetcher HTTPResponse HTTPFetcher createHTTPFetcher HTTPFetchingError HTTPError N/A urllib2 N/A time N/A cStringIO N/A sys N/A openid N/A openid.urinorm N/A N/A N/A httplib2 N/A N/A N/A ImportError N/A N/A httplib2 None N/A N/A N/A pycurl N/A N/A N/A ImportError N/A N/A pycurl None N/A USER_AGENT N/A python-openid/%s (%s) N/A N/A openid __version__ N/A sys platform N/A MAX_RESPONSE_KB 1024 fetch N/A N/A url body headers N/A None None N/A N/A Invoke the fetch method on the default fetcher. Most users
    should need only this method.

    @raises Exception: any exceptions that may be raised by the default fetcher
     N/A fetcher N/A getDefaultFetcher N/A N/A N/A fetcher fetch url body headers N/A createHTTPFetcher N/A N/A N/A N/A N/A Create a default HTTP fetcher instance

    prefers Curl to urllib2. N/A N/A pycurl None N/A N/A fetcher N/A Urllib2Fetcher N/A N/A fetcher N/A CurlHTTPFetcher N/A fetcher N/A N/A _default_fetcher None getDefaultFetcher N/A N/A N/A N/A N/A Return the default fetcher instance
    if no fetcher has been set, it will create a default fetcher.

    @return: the default fetcher
    @rtype: HTTPFetcher
     N/A _default_fetcher N/A N/A _default_fetcher None N/A N/A N/A setDefaultFetcher N/A createHTTPFetcher N/A _default_fetcher N/A setDefaultFetcher N/A N/A fetcher wrap_exceptions N/A True N/A N/A Set the default fetcher

    @param fetcher: The fetcher to use as the default HTTP fetcher
    @type fetcher: HTTPFetcher

    @param wrap_exceptions: Whether to wrap exceptions thrown by the
        fetcher wil HTTPFetchingError so that they may be caught
        easier. By default, exceptions will be wrapped. In general,
        unwrapped fetchers are useful for debugging of fetching errors
        or if your fetcher raises well-known exceptions that you would
        like to catch.
    @type wrap_exceptions: bool
     N/A _default_fetcher N/A N/A N/A fetcher None N/A wrap_exceptions N/A N/A _default_fetcher fetcher N/A N/A _default_fetcher N/A ExceptionWrappingFetcher fetcher N/A usingCurl N/A N/A N/A N/A N/A Whether the currently set HTTP fetcher is a Curl HTTP fetcher. N/A N/A isinstance N/A getDefaultFetcher CurlHTTPFetcher N/A HTTPResponse N/A object N/A N/A XXX document attributes N/A headers None N/A status None N/A body None N/A final_url None __init__ N/A N/A self final_url status headers body N/A None None None None N/A N/A N/A self final_url final_url N/A N/A self status status N/A N/A self headers headers N/A N/A self body body N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s status %s for %s> N/A N/A N/A self __class__ __name__ N/A self status N/A self final_url N/A N/A HTTPFetcher N/A object N/A N/A 
    This class is the interface for openid HTTP fetchers.  This
    interface is only important if you need to write a new fetcher for
    some reason.
     fetch N/A N/A self url body headers N/A None None N/A N/A 
        This performs an HTTP POST or GET, following redirects along
        the way. If a body is specified, then the request will be a
        POST. Otherwise, it will be a GET.


        @param headers: HTTP headers to include with the request
        @type headers: {str:str}

        @return: An object representing the server's HTTP response. If
            there are network or protocol errors, an exception will be
            raised. HTTP error responses, like 404 or 500, do not
            cause exceptions.

        @rtype: L{HTTPResponse}

        @raise Exception: Different implementations will raise
            different errors based on the underlying HTTP library.
         N/A NotImplementedError N/A N/A _allowedURL N/A N/A url N/A N/A N/A N/A N/A N/A url startswith http:// N/A N/A url startswith https:// N/A HTTPFetchingError N/A Exception N/A N/A Exception that is wrapped around all exceptions that are raised
    by the underlying fetcher when using the ExceptionWrappingFetcher

    @ivar why: The exception that caused this exception
     __init__ N/A N/A self why N/A None N/A N/A N/A N/A Exception __init__ self why N/A N/A self why why N/A N/A ExceptionWrappingFetcher N/A HTTPFetcher N/A N/A Fetcher that wraps another fetcher, causing all exceptions

    @cvar uncaught_exceptions: Exceptions that should be exposed to the
        user if they are raised by the fetch call
     N/A uncaught_exceptions N/A SystemExit KeyboardInterrupt MemoryError __init__ N/A N/A self fetcher N/A N/A N/A N/A self fetcher fetcher N/A fetch N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A N/A N/A self fetcher fetch args kwargs N/A N/A N/A N/A self uncaught_exceptions N/A N/A N/A N/A N/A N/A exc_cls exc_inst N/A N/A N/A sys exc_info N/A 2 N/A N/A exc_inst None N/A N/A exc_inst exc_cls N/A N/A HTTPFetchingError why exc_inst N/A N/A Urllib2Fetcher N/A HTTPFetcher N/A N/A An C{L{HTTPFetcher}} that uses urllib2.
     N/A urlopen N/A staticmethod N/A urllib2 urlopen fetch N/A N/A self url body headers N/A None None N/A N/A N/A N/A _allowedURL url N/A N/A N/A ValueError N/A Bad URL scheme: %r N/A url N/A N/A headers None N/A N/A headers N/A N/A N/A N/A headers setdefault User-Agent N/A %s Python-urllib/%s N/A USER_AGENT N/A urllib2 __version__ N/A N/A N/A headers setdefault Range N/A 0-%s N/A N/A 1024 MAX_RESPONSE_KB N/A req N/A N/A urllib2 Request url data body headers headers N/A N/A N/A f N/A N/A self urlopen req N/A N/A N/A N/A N/A self _makeResponse f N/A N/A N/A N/A f close N/A N/A N/A N/A urllib2 HTTPError N/A why N/A N/A N/A N/A N/A N/A self _makeResponse why N/A N/A N/A N/A why close N/A _makeResponse N/A N/A self urllib2_response N/A N/A N/A resp N/A HTTPResponse N/A N/A resp body N/A N/A urllib2_response read N/A MAX_RESPONSE_KB 1024 N/A N/A resp final_url N/A N/A urllib2_response geturl N/A N/A resp headers N/A dict N/A N/A N/A N/A urllib2_response info items N/A N/A hasattr urllib2_response code N/A N/A N/A resp status N/A urllib2_response code N/A N/A N/A resp status 200 N/A resp N/A N/A HTTPError N/A HTTPFetchingError N/A N/A 
    This exception is raised by the C{L{CurlHTTPFetcher}} when it
    encounters an exceptional situation fetching a URL.
     N/A N/A CurlHTTPFetcher N/A HTTPFetcher N/A N/A 
    An C{L{HTTPFetcher}} that uses pycurl for fetching.
    See U{http://pycurl.sourceforge.net/}.
     N/A ALLOWED_TIME 20 __init__ N/A N/A self N/A N/A N/A N/A N/A HTTPFetcher __init__ self N/A N/A pycurl None N/A N/A N/A RuntimeError Cannot find pycurl library N/A _parseHeaders N/A N/A self header_file N/A N/A N/A N/A N/A header_file seek 0 N/A unused_http_status_line N/A N/A header_file readline N/A lines N/A N/A N/A line strip N/A line header_file N/A empty_line N/A N/A lines pop N/A empty_line N/A N/A N/A HTTPError N/A No blank line at end of headers: %r N/A line N/A headers N/A N/A line lines N/A N/A N/A N/A N/A name value N/A N/A line split : 1 N/A N/A N/A ValueError N/A N/A N/A HTTPError N/A Malformed HTTP header line in response: %r N/A line N/A value N/A N/A value strip N/A name N/A N/A name lower N/A N/A headers N/A name value N/A headers N/A _checkURL N/A N/A self url N/A N/A N/A N/A _allowedURL url N/A fetch N/A N/A self url body headers N/A None None N/A N/A stop N/A N/A int N/A N/A time time N/A self ALLOWED_TIME N/A off N/A self ALLOWED_TIME N/A N/A headers None N/A N/A headers N/A N/A N/A N/A headers setdefault User-Agent N/A %s %s N/A USER_AGENT N/A pycurl version N/A header_list N/A N/A N/A headers None N/A N/A N/A header_name header_value N/A N/A headers iteritems N/A N/A N/A N/A header_list append N/A %s: %s N/A header_name header_value N/A c N/A N/A pycurl Curl N/A N/A N/A N/A N/A c setopt N/A pycurl NOSIGNAL 1 N/A header_list N/A N/A N/A N/A c setopt N/A pycurl HTTPHEADER header_list N/A N/A body None N/A N/A N/A N/A c setopt N/A pycurl POST 1 N/A N/A N/A c setopt N/A pycurl POSTFIELDS body N/A N/A off 0 N/A N/A N/A N/A N/A self _checkURL url N/A N/A N/A HTTPError N/A Fetching URL not allowed: %r N/A url N/A data N/A N/A cStringIO StringIO write_data N/A N/A chunk N/A N/A N/A N/A N/A N/A data tell N/A 1024 MAX_RESPONSE_KB N/A N/A 0 N/A N/A N/A N/A data write chunk N/A N/A response_header_data N/A N/A cStringIO StringIO N/A N/A N/A c setopt N/A pycurl WRITEFUNCTION write_data N/A N/A N/A c setopt N/A pycurl HEADERFUNCTION N/A response_header_data write N/A N/A N/A c setopt N/A pycurl TIMEOUT off N/A N/A N/A c setopt N/A pycurl URL N/A N/A N/A openid urinorm urinorm url N/A N/A N/A c setopt N/A pycurl RANGE N/A 0-%s N/A MAX_RESPONSE_KB 1024 N/A N/A N/A c perform N/A response_headers N/A N/A self _parseHeaders response_header_data N/A code N/A N/A c getinfo N/A pycurl RESPONSE_CODE N/A N/A code N/A 301 302 303 307 N/A N/A url N/A N/A response_headers get location N/A N/A url None N/A N/A N/A HTTPError N/A Redirect (%s) returned without a location code N/A N/A N/A c setopt N/A pycurl POST 0 N/A N/A resp N/A HTTPResponse N/A N/A resp headers response_headers N/A N/A resp status code N/A N/A resp final_url url N/A N/A resp body N/A N/A data getvalue N/A resp N/A off N/A stop N/A int N/A N/A time time N/A N/A HTTPError N/A Timed out fetching: %r N/A url N/A N/A N/A N/A c close N/A N/A HTTPLib2Fetcher N/A HTTPFetcher N/A N/A A fetcher that uses C{httplib2} for performing HTTP
    requests. This implementation supports HTTP caching.

    @see: http://bitworking.org/projects/httplib2/
     __init__ N/A N/A self cache N/A None N/A N/A @param cache: An object suitable for use as an C{httplib2}
            cache. If a string is passed, it is assumed to be a
            directory name.
         N/A N/A httplib2 None N/A N/A N/A RuntimeError Cannot find httplib2 library. See http://bitworking.org/projects/httplib2/ N/A N/A N/A N/A super HTTPLib2Fetcher self __init__ N/A N/A self httplib2 N/A N/A httplib2 Http cache N/A N/A N/A self httplib2 force_exception_to_status_code False N/A fetch N/A N/A self url body headers N/A None None N/A N/A Perform an HTTP request

        @raises Exception: Any exception that can be raised by httplib2

        @see: C{L{HTTPFetcher.fetch}}
         N/A body N/A N/A method POST N/A N/A method GET N/A N/A headers None N/A N/A headers N/A N/A N/A N/A headers setdefault Range N/A 0-%s N/A N/A 1024 MAX_RESPONSE_KB N/A N/A N/A N/A N/A url startswith http:// N/A N/A url startswith https:// N/A N/A N/A ValueError N/A URL is not a HTTP URL: %r N/A url N/A N/A httplib2_response content N/A N/A N/A self httplib2 request url method body body headers headers N/A N/A N/A final_url N/A httplib2_response N/A content-location N/A N/A N/A KeyError N/A N/A N/A N/A httplib2_response previous N/A N/A N/A httplib2_response status 200 N/A final_url url N/A N/A HTTPResponse body content final_url final_url headers N/A dict N/A N/A httplib2_response items status N/A httplib2_response status N/A N/A