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

Function clean_data

src/packagedcode/opam.py:257–264  ·  view source on GitHub ↗

Return data after removing unnecessary special character.

(data)

Source from the content-addressed store, hash-verified

255
256
257def clean_data(data):
258 """
259 Return data after removing unnecessary special character.
260 """
261 for strippable in ("'", '"', '[', ']',):
262 data = data.replace(strippable, '')
263
264 return data.strip()

Callers 1

parse_opam_from_textFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected