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

Method toggle

bleachbit/Options.py:552–554  ·  view source on GitHub ↗

Toggle a boolean key

(self, key)

Source from the content-addressed store, hash-verified

550 self.__schedule_flush()
551
552 def toggle(self, key):
553 """Toggle a boolean key"""
554 self.set(key, not self.get(key))
555
556 def set_override(self, key, value, section='bleachbit'):
557 """Set a CLI override that will never be written to disk"""

Callers 2

test_OptionsMethod · 0.80
__toggle_callbackMethod · 0.80

Calls 2

setMethod · 0.95
getMethod · 0.95

Tested by 1

test_OptionsMethod · 0.64