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

Method get_language

bleachbit/Options.py:292–298  ·  view source on GitHub ↗

Retrieve value for whether to preserve the language

(self, langid)

Source from the content-addressed store, hash-verified

290 return self.get(path_to_option(pathname), 'hashpath')
291
292 def get_language(self, langid):
293 """Retrieve value for whether to preserve the language"""
294 if not self.config.has_section('preserve_languages'):
295 self.__auto_preserve_languages()
296 if not self.config.has_option('preserve_languages', langid):
297 return False
298 return self.config.getboolean('preserve_languages', langid)
299
300 def get_languages(self):
301 """Return a list of all selected languages"""

Calls 2

has_optionMethod · 0.45