(self, name, domain=None, path=None)
Both ``__get_item__`` and ``get`` call this function: it's never
        used elsewhere in Requests. Takes as args name and optional domain and
        path. Returns a cookie.value. Throws KeyError if cookie is not found
        and CookieConflictError if there are multiple cookies that match name
        and optionally domain and path.
Both ``__get_item__`` and ``get`` call this function: it's never
        used elsewhere in Requests. Takes as args name and optional domain and
        path. Returns a cookie.value. Throws KeyError if cookie is not found
        and CookieConflictError if there are multiple cookies that match name
        and optionally domain and path.
Both __get_item__ and get call this function : it s never used elsewhere in Requests . Takes as args name and optional domain and path . Returns a cookie . value . Throws KeyError if cookie is not found and CookieConflictError if there are multiple cookies that match name and optionally domain and path .
def _find_no_duplicates(self, name, domain=None, path=None):
        """Both ``__get_item__`` and ``get`` call this function: it's never
        used elsewhere in Requests. Takes as args name and optional domain and
        path. Returns a cookie.value. Throws KeyError if cookie is not found
        and CookieConflictError if there are multiple cookies that match name
        and optionally domain and path."""
        toReturn = None
        for cookie in iter(self):
            if cookie.name == name:
                if domain is None or cookie.domain == domain:
                    if path is None or cookie.path == path:
                        if toReturn is not None:  # if there are multiple cookies that meet passed in criteria
                            raise CookieConflictError('There are multiple cookies with name, %r' % (name))
                        toReturn = cookie.value  # we will eventually return this as long as no cookie conflict

        if toReturn:
            return toReturn
        raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
def _find_no_duplicates ( self , name , domain = None , path = None ) : toReturn = None for cookie in iter ( self ) : if cookie . name == name : if domain is None or cookie . domain == domain : if path is None or cookie . path == path : if toReturn is not None : # if there are multiple cookies that meet passed in criteria raise CookieConflictError ( 'There are multiple cookies with name, %r' % ( name ) ) toReturn = cookie . value # we will eventually return this as long as no cookie conflict if toReturn : return toReturn raise KeyError ( 'name=%r, domain=%r, path=%r' % ( name , domain , path ) )