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

Method __init__

bleachbit/RecognizeCleanerML.py:143–150  ·  view source on GitHub ↗
(self, parent_window=None)

Source from the content-addressed store, hash-verified

141 """Check local CleanerML files as a security measure"""
142
143 def __init__(self, parent_window=None):
144 self.parent_window = parent_window
145 try:
146 self.salt = options.get('hashsalt')
147 except bleachbit.NoOptionError:
148 self.salt = hashdigest(os.urandom(512))
149 options.set('hashsalt', self.salt)
150 self.__scan()
151
152 def __recognized(self, pathname):
153 """Is pathname recognized?"""

Callers

nothing calls this directly

Calls 4

__scanMethod · 0.95
hashdigestFunction · 0.85
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected