def md(filename):
content = io.open(filename).read()<EOL>for match in RE_BADGE.finditer(content):<EOL><INDENT>if match.group('<STR_LIT>') not in BADGES_TO_KEEP:<EOL><INDENT>content = content.replace(match.group(<NUM_LIT:0>), '<STR_LIT>')<EOL><DEDENT><DEDENT>return content<EOL>
Load .md (markdown) file and sanitize it for PyPI.
Remove unsupported github tags:
 - code-block directive
 - travis ci build badges