def METHOD_NAME(self, path):
    lines = []
    with open(path, "r", encoding="utf-8") as ttx:
        for line in ttx.readlines():
            # Elide ttFont attributes because ttLibVersion may change.
            if line.startswith("<ttFont "):
                lines.append("<ttFont>\n")
            else:
                lines.append(line.rstrip() + "\n")
    return lines