def load_and_clean_tv(location):
content = codecs.open(location, encoding='<STR_LIT:utf-8>').read()<EOL>content = [l for l in content.splitlines(False)<EOL>if l and l.strip() and not l.startswith(('<STR_LIT>', '<STR_LIT>',))]<EOL>return '<STR_LIT:\n>'.join(content)<EOL>
Return a mapping for the SPDX TV file at location suitable for
comparison. The file content is cleaned from variable parts such as
dates, generated UUIDs and versions