

def _check_file(self):
    '\n        Checks watched file moficiation time and permission changes.\n        '
    try:
        self.editor.toPlainText()
    except RuntimeError:
        self._timer.stop()
        return
    if (self.editor and self.editor.file.path):
        if ((not os.path.exists(self.editor.file.path)) and self._mtime):
            writeable._notify_deleted_file()
        else:
            mtime = os.path.getmtime(self.editor.file.path)
            if (mtime > self._mtime):
                self._mtime = mtime
                self._notify_change()
            writeable = os.access(self.editor.file.path, os.W_OK)
            self.editor.setReadOnly((not writeable))

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/modes/filewatcher.py FileWatcherMode._check_file/VarMisuse@85/122 `self`->`writeable`