Reverts either given file or current **Script_Editor_tabWidget** Widget tab Model editor file.

        :param file: File to revert.
        :type file: unicode
        :return: Method success.
        :rtype: bool

def revert_file(self, file=None):
        """
        Reverts either given file or current **Script_Editor_tabWidget** Widget tab Model editor file.

        :param file: File to revert.
        :type file: unicode
        :return: Method success.
        :rtype: bool
        """

        editor = file and self.get_editor(file) or self.get_current_editor()
        if not editor:
            return False

        file = editor.file
        LOGGER.info("{0} | Reverting '{1}' file!".format(self.__class__.__name__, file))
        if self.reload_file(file, is_modified=False):
            return True