def get_old_style_versioned_asset_url(asset_path):
 try:
  locator = StaticContent.get_location_from_path(asset_path)
  content = AssetManager.find(locator, as_stream=True)
  return u'{}/{}{}'.format(VERSIONED_ASSETS_PREFIX, content.content_digest, asset_path)
 except (InvalidKeyError, ItemNotFoundError):
  pass
 return asset_path

def get_old_style_versioned_asset_url ( asset_path ) : try : locator = StaticContent . get_location_from_path ( asset_path ) content = AssetManager . find ( locator , as_stream = True ) return u'{}/{}{}' . format ( VERSIONED_ASSETS_PREFIX , content . content_digest , asset_path ) except ( InvalidKeyError , ItemNotFoundError ) : pass return asset_path
creates an old-style versioned asset url .