def build_api_url(slug):
 if (len(slug.split(u'/')) != 2):
  raise ValueError(u'Invalid GitHub slug : {0}'.format(slug))
 return RELEASES_BASE.format(slug)

def build_api_url ( slug ) : if ( len ( slug . split ( u'/' ) ) != 2 ) : raise ValueError ( u'Invalid GitHub slug : {0}' . format ( slug ) ) return RELEASES_BASE . format ( slug )
generate releases url from github slug .