src/license_expression/__init__.py
def build_spdx_licensing(license_index):
    """
    Return a Licensing object that has been loaded with license keys and
    attributes from a ``license_index`` list of simple SPDX license mappings.
    """
    # Massage data such that SPDX license key is the primary license key
    lics = [
        {
            'key': l.get('spdx_license_key', ''),
            'aliases': l.get('other_spdx_license_keys', []),
            'is_exception': l.get('is_exception', ''),
        } for l in license_index
        if l.get('spdx_license_key')
        and not l.get('is_deprecated', False)
    ]
    return load_licensing_from_license_index(lics)

    Return a Licensing object that has been loaded with license keys and
    attributes from a ``license_index`` list of simple SPDX license mappings.
    
Return a Licensing object that has been loaded with license keys and
attributes from a ``license_index`` list of simple SPDX license mappings.
Return a Licensing object that has been loaded with license keys and attributes from a ` ` license_index ` ` list of simple SPDX license mappings .
def build_spdx_licensing(license_index):
    lics = [
        {
            'key': l.get('spdx_license_key', ''),
            'aliases': l.get('other_spdx_license_keys', []),
            'is_exception': l.get('is_exception', ''),
        } for l in license_index
        if l.get('spdx_license_key')
        and not l.get('is_deprecated', False)
    ]
    return load_licensing_from_license_index(lics)
def build_spdx_licensing ( license_index ) : lics = [ { 'key' : l . get ( 'spdx_license_key' , '' ) , 'aliases' : l . get ( 'other_spdx_license_keys' , [ ] ) , 'is_exception' : l . get ( 'is_exception' , '' ) , } for l in license_index if l . get ( 'spdx_license_key' ) and not l . get ( 'is_deprecated' , False ) ] return load_licensing_from_license_index ( lics )
Return a Licensing object that has been loaded with license keys and
attributes from a ``license_index`` list of simple SPDX license mappings.
Return a Licensing object that has been loaded with license keys and attributes from a ` ` license_index ` ` list of simple SPDX license mappings .
"""
    Return a Licensing object that has been loaded with license keys and
    attributes from a ``license_index`` list of simple SPDX license mappings.
    """ # Massage data such that SPDX license key is the primary license key
license_index