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

Method remember_warning_preference

bleachbit/Options.py:355–361  ·  view source on GitHub ↗

Persist that a specific warning was confirmed once.

(self, key)

Source from the content-addressed store, hash-verified

353 return False
354
355 def remember_warning_preference(self, key):
356 """Persist that a specific warning was confirmed once."""
357 section = "warnings"
358 if not self.config.has_section(section):
359 self.config.add_section(section)
360 self.config.set(section, key, 'True')
361 self.__schedule_flush()
362
363 def clear_warning_preferences(self):
364 """Clear all saved warning confirmations."""

Callers 4

test_warningMethod · 0.80
_check_protected_pathMethod · 0.80
set_cleanerMethod · 0.80

Calls 3

__schedule_flushMethod · 0.95
add_sectionMethod · 0.80
setMethod · 0.45

Tested by 2

test_warningMethod · 0.64