def _rm_lock_files(): for lfp in glob.glob(_tc_lock_fpaths): rmfile(lfp)
def _rm_lock_files(): for lfp in glob.glob(_tc_lock_fpaths): rmfile(lfp)
def __exit__(self, type=None, value=None, traceback=None): if self.is_dir: rmtree(self.path) else: rmfile(self.path)