Exemple #1
0
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
Exemple #2
0
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