def rst(filename):
    '''
    Load rst file and sanitize it for PyPI.
    Remove unsupported github tags:
     - code-block directive
     - travis ci build badge
    '''
    content = codecs.open(filename, encoding='utf-8').read()
    for regex, replacement in PYPI_RST_FILTERS:
        content = re.sub(regex, replacement, content)
    return content
def rst ( filename ) : content = codecs . open ( filename , encoding = 'utf-8' ) . read ( ) for regex , replacement in PYPI_RST_FILTERS : content = re . sub ( regex , replacement , content ) return content
Load rst file and sanitize it for PyPI.
    Remove unsupported github tags:
     - code-block directive
     - travis ci build badge