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

Function build_name_value_str_handler

src/packagedcode/alpine.py:880–889  ·  view source on GitHub ↗

Return a generic handler callable function for plain string fields with the name ``name``.

(name)

Source from the content-addressed store, hash-verified

878
879
880def build_name_value_str_handler(name):
881 """
882 Return a generic handler callable function for plain string fields with the
883 name ``name``.
884 """
885
886 def handler(value, **kwargs):
887 return {name: value}
888
889 return handler
890
891
892def apkbuild_version_handler(value, all_fields, **kwargs):

Callers 1

alpine.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected