code: def read_python_code(filename):
      "Returns the given Python source file's compiled content."
      file = open(filename, "rt")
      try:
          source = file.read()
      finally:
          file.close()
      # Python 2.6 and below did not support passing strings to exec() &
      # compile() functions containing line separators other than '\n'. To
      # support them we need to manually make sure such line endings get
      # converted even on platforms where this is not handled by native text file
      # read operations.
      source = source.replace("\r\n", "\n").replace("\r", "\n")
      return compile(source, filename, "exec"f read_python_code(filename):
      "Returns the given Python source file's compiled content."
      file = open(filename, "rt")
      try:
          source = file.read()
      finally:
          file.close()
      # Python 2.6 and below did not support passing strings to exec() &
      # compile() functions containing line separators other than '\n'. To
      # support them we need to manually make sure such line endings get
      # converted even on platforms where this is not handled by native text file
      # read operations.
      source = source.replace("\r\n", "\n").replace("\r", "\n")
      return compile(source, filename, "exec")
docs: Returns the given Python source file's compiled content.