[docs]classStatMonitor(BaseMonitor):"""File change monitor based on the ``stat`` system call."""def_mtimes(self):return((f,self._mtime(f))forfinself.files)def_maybe_modified(self,f,mt):returnmtisnotNoneandself.modify_times[f]!=mt