def get_cached_content(location):
 return CONTENT_CACHE.get(unicode(location).encode('utf-8'), version=STATIC_CONTENT_VERSION)

def get_cached_content ( location ) : return CONTENT_CACHE . get ( unicode ( location ) . encode ( 'utf-8' ) , version = STATIC_CONTENT_VERSION )
retrieves the given piece of content by its location if cached .