def make_static_urls_absolute(request, html):
 def replace(__, prefix, quote, rest):
  '\n        Function to actually do a single relative -> absolute url replacement\n        '
  processed = request.build_absolute_uri((prefix + rest))
  return ((quote + processed) + quote)
 return process_static_urls(html, replace)

def make_static_urls_absolute ( request , html ) : def replace ( __ , prefix , quote , rest ) : processed = request . build_absolute_uri ( ( prefix + rest ) ) return ( ( quote + processed ) + quote ) return process_static_urls ( html , replace )
converts relative urls referencing static assets to absolute urls .