def doc_html_cache_key(locale, slug, mobile, minimal):
 cache_key = DOC_HTML_CACHE_KEY.format(locale=locale, slug=slug, mobile=str(mobile), minimal=str(minimal))
 return hashlib.sha1(smart_str(cache_key)).hexdigest()

def doc_html_cache_key ( locale , slug , mobile , minimal ) : cache_key = DOC_HTML_CACHE_KEY . format ( locale = locale , slug = slug , mobile = str ( mobile ) , minimal = str ( minimal ) ) return hashlib . sha1 ( smart_str ( cache_key ) ) . hexdigest ( )
returns the cache key for the document html .