MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / build_unknown_spdx_symbol

Function build_unknown_spdx_symbol

src/licensedcode/cache.py:381–389  ·  view source on GitHub ↗

Return the unknown SPDX license symbol given a `licenses_db` mapping of {key: License} or the standard license db.

(licenses_db=None)

Source from the content-addressed store, hash-verified

379
380
381def build_unknown_spdx_symbol(licenses_db=None):
382 """
383 Return the unknown SPDX license symbol given a `licenses_db` mapping of
384 {key: License} or the standard license db.
385 """
386 from license_expression import LicenseSymbolLike
387 from licensedcode.models import load_licenses
388 licenses_db = licenses_db or load_licenses()
389 return LicenseSymbolLike(licenses_db['unknown-spdx'])
390
391
392def get_cache(

Callers 1

load_or_buildMethod · 0.85

Calls 1

load_licensesFunction · 0.90

Tested by

no test coverage detected