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

Function remove_properties_and_basics

src/commoncode/resource.py:2181–2186  ·  view source on GitHub ↗

Given a mapping of resource_data attributes to use as "kwargs", return a new mapping with the known properties removed.

(resource_data)

Source from the content-addressed store, hash-verified

2179
2180
2181def remove_properties_and_basics(resource_data):
2182 """
2183 Given a mapping of resource_data attributes to use as "kwargs", return a new
2184 mapping with the known properties removed.
2185 """
2186 return {k: v for k, v in resource_data.items() if k not in KNOW_PROPS}
2187
2188
2189def get_ancestor_paths(path, include_self=False):

Callers 1

_populateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected