def _relative_to_absolute(url):
 url = url.group(1).strip('"\'')
 if (not url.startswith(('data:', 'http:', 'https:', '//'))):
  url = url.replace('../../', settings.STATIC_URL)
 return ('url(%s)' % url)

def _relative_to_absolute ( url ) : url = url . group ( 1 ) . strip ( '"\'' ) if ( not url . startswith ( ( 'data:' , 'http:' , 'https:' , '//' ) ) ) : url = url . replace ( '../../' , settings . STATIC_URL ) return ( 'url(%s)' % url )
prepends relative urls with static_url to turn those inline-able .