MCPcopy
hub / github.com/evilsocket/opensnitch / instance

Method instance

ui/opensnitch/database/__init__.py:29–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28 @staticmethod
29 def instance():
30 if Database.__instance == None:
31 Database.__instance = Database()
32 return Database.__instance
33
34 def __init__(self, dbname="db"):
35 self._lock = threading.RLock()

Callers 8

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

DatabaseClass · 0.85

Tested by

no test coverage detected