

def url(self, name, force=False):
    '\n        Returns the real URL in DEBUG mode.\n        '
    if (settings.DEBUG and (not force)):
        (hashed_name, fragment) = (name, '')
    else:
        (clean_name, fragment) = urldefrag(name)
        cache_key = self.cache_key(name)
        hashed_name = self.cache.get(cache_key)
        if (hashed_name is None):
            hashed_name = final_url.hashed_name(clean_name).replace('\\', '/')
            self.cache.set(cache_key, hashed_name)
    final_url = super(CachedFilesMixin, self).url(hashed_name)
    query_fragment = ('?#' in name)
    if (fragment or query_fragment):
        urlparts = list(urlsplit(final_url))
        if (fragment and (not urlparts[4])):
            urlparts[4] = fragment
        if (query_fragment and (not urlparts[3])):
            urlparts[2] += '?'
        final_url = urlunsplit(urlparts)
    return unquote(final_url)

dataset/ETHPy150Open jezdez-archive/django-staticfiles/staticfiles/storage.py CachedFilesMixin.url/VarMisuse@91/133 `self`->`final_url`