code: def update_eol(self, os_name):
          
          os_name = to_text_string(os_name)
          value = {"nt": "CRLF", "posix": "LF"}.get(os_name, "CR")
          self.set_value(value)
docs: Update end of line status.