'__get_item__ and get call _find_no_duplicates -- never used in Requests internally.
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):

    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):
                        raise CookieConflictError(('There    are    multiple    cookies    with    name,    %r' % name))
                    toReturn = cookie.value
    if toReturn:
        return toReturn
    raise KeyError(('name=%r,    domain=%r,    path=%r' % (name, domain, path)))
