MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / close

Method close

bleachbit/Options.py:470–478  ·  view source on GitHub ↗

Cancel times and write changes

(self)

Source from the content-addressed store, hash-verified

468 self.__flush(force=True)
469
470 def close(self):
471 """Cancel times and write changes"""
472 with self._flush_lock:
473 if self._closed:
474 return
475 self._closed = True
476 atexit.unregister(self._atexit_close)
477 self.__cancel_flush_timer()
478 self.__flush(force=False)
479
480 def set_hashpath(self, pathname, hashvalue):
481 """Remember the hash of a path"""

Calls 2

__cancel_flush_timerMethod · 0.95
__flushMethod · 0.95

Tested by 15

test_purgeMethod · 0.76
test_overridesMethod · 0.76
test_OptionsMethod · 0.64
test_keep_listMethod · 0.64
test_warningMethod · 0.64
create_disk_imageFunction · 0.64