def urlparse_cached(request_or_response):
    """Return urlparse.urlparse caching the result, where the argument can be a
    Request or Response object
    """
    if _urlparse_cache not in request_or_response:
        _urlparse_cache[request_or_response] = urlparse(request_or_response.url)
    return _urlparse_cache[request_or_response]
dataset/ETHPy150Open scrapy/scrapy/scrapy/utils/httpobj.py/urlparse_cached/swapped operands of `not in`