code: def _set_line_eol(src, line):
      '''
      Add line ending
      '''
      line_ending = _get_eol(src) or os.linesep
      return line.rstrip() + line_endinf _set_line_eol(src, line):
      '''
      Add line ending
      '''
      line_ending = _get_eol(src) or os.linesep
      return line.rstrip() + line_ending
docs: Add line ending