def license_name(license_url): """ returns a "pretty" license name for a license URL """ info = license_info(license_url) if info.name: return '%s %s' % (info.name, info.version or '') return info.url
def license_name(license_url): """ returns a "pretty" license name for a license URL """ info = license_info(license_url) if info.name: return "%s %s" % (info.name, info.version or "") return info.url