code: 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 contenf 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
docs: Load rst file and sanitize it for PyPI.
      Remove unsupported github tags:
       - code-block directive
       - travis ci build badge