def _ends_with(self, string_to_edit, end):  # pylint: disable=no-self-use
        """
        Check if string ends with characters in end, if not merge end to string.

        :param string_to_edit: string to check and edit.
        :param end: str
        :return: string_to_edit or string_to_edit + end
        """
        if not string_to_edit.endswith(end):
            return string_to_edit + end
        return string_to_edit
def _ends_with ( self , string_to_edit , end ) : if not string_to_edit . endswith ( end ) : return string_to_edit + end return string_to_edit
Check if string ends with characters in end, if not merge end to string.

        :param string_to_edit: string to check and edit.
        :param end: str
        :return: string_to_edit or string_to_edit + end