

def _notify_change(self):
    '\n        Notify user from external change if autoReloadChangedFiles is False\n        then reload the changed file in the editor\n        '

    def inner_action(*args):
        ' Inner action: open file '
        Cache().set_cursor_position(self.editor.file.path, self.editor.textCursor().position())
        self.editor.file.open(self.editor.file.path)
        self.file_reloaded.emit()
    args = (_('File changed'), (_('The file <i>%s</i> has changed externally.\nDo you want to reload it?') % os.path.basename(self.editor.file.path)))
    kwargs = {
        'expected_action': inner_action,
    }
    if (self.editor.hasFocus() or self.auto_reload):
        self._notify(*kwargs, **kwargs)
    else:
        self._notification_pending = True
        self._data = (args, kwargs)

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/modes/filewatcher.py FileWatcherMode._notify_change/VarMisuse@141/251 `args`->`kwargs`