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

Method add_section

bleachbit/Winapp.py:172–182  ·  view source on GitHub ↗

Add a section (cleaners)

(self, cleaner_id, name)

Source from the content-addressed store, hash-verified

170 cb_progress(1.0 * section_done_count / section_total_count)
171
172 def add_section(self, cleaner_id, name):
173 """Add a section (cleaners)"""
174 self.cleaner_ids.append(cleaner_id)
175 self.cleaners[cleaner_id] = Cleaner.Cleaner()
176 self.cleaners[cleaner_id].id = cleaner_id
177 self.cleaners[cleaner_id].name = name
178 assert name.strip() == name
179 self.cleaners[cleaner_id].description = _('Imported from winapp2.ini')
180 # The detect() function in this module effectively does what
181 # auto_hide() does, so this avoids redundant, slow processing.
182 self.cleaners[cleaner_id].auto_hide = _always_false
183
184 def section_to_cleanerid(self, langsecref):
185 """Given a langsecref (or section name), find the internal

Callers 12

__init__Method · 0.95
section_to_cleaneridMethod · 0.95
test_abbreviationsMethod · 0.80
test_percentMethod · 0.80
restoreMethod · 0.80
set_listMethod · 0.80
set_whitelist_pathsMethod · 0.80
set_custom_pathsMethod · 0.80
set_languageMethod · 0.80
set_treeMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_abbreviationsMethod · 0.64
test_percentMethod · 0.64