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

Function build_description

src/packagedcode/utils.py:117–130  ·  view source on GitHub ↗

Return a description string from a summary and description

(summary, description)

Source from the content-addressed store, hash-verified

115
116
117def build_description(summary, description):
118 """
119 Return a description string from a summary and description
120 """
121 summary = (summary or '').strip()
122 description = (description or '').strip()
123
124 if not description:
125 description = summary
126 else:
127 if summary and summary not in description:
128 description = '\n'.join([summary , description])
129
130 return description
131
132
133_LICENSING = Licensing and Licensing() or None

Callers 6

parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
get_descriptionFunction · 0.90

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected