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

Function get_cleaned_string

src/packagedcode/spec.py:246–253  ·  view source on GitHub ↗

Return ``string`` removing unnecessary special character

(string)

Source from the content-addressed store, hash-verified

244
245
246def get_cleaned_string(string):
247 """
248 Return ``string`` removing unnecessary special character
249 """
250 if string:
251 for replaceable in ("'", '"', '{', '}', '[', ']', '%q', '<', '>', '.freeze'):
252 string = string.replace(replaceable, '')
253 return string.strip()
254
255
256def get_multiline_description(description_start, lines):

Callers 5

get_valueFunction · 0.85
get_podspec_sourceFunction · 0.85
get_emailsFunction · 0.85
get_authorsFunction · 0.85
parse_specFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected