def _get_ppa_info_from_launchpad(owner_name, ppa_name):
 lp_url = 'https://launchpad.net/api/1.0/~{0}/+archive/{1}'.format(owner_name, ppa_name)
 request = _Request(lp_url, headers={'Accept': 'application/json'})
 lp_page = _urlopen(request)
 return json.load(lp_page)

def _get_ppa_info_from_launchpad ( owner_name , ppa_name ) : lp_url = 'https://launchpad.net/api/1.0/~{0}/+archive/{1}' . format ( owner_name , ppa_name ) request = _Request ( lp_url , headers = { 'Accept' : 'application/json' } ) lp_page = _urlopen ( request ) return json . load ( lp_page )
idea from softwareproperties .