MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / __init__

Method __init__

src/inventory.py:18–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16@Singleton
17class Inventory():
18 def __init__(self):
19 #super(self.__class__, self).__init__()
20 self._moduleName = BMConfigParser().safeGet("inventory", "storage")
21 #import_module("." + self._moduleName, "storage")
22 #import_module("storage." + self._moduleName)
23 self._className = "storage." + self._moduleName + "." + self._moduleName.title() + "Inventory"
24 self._inventoryClass = eval(self._className)
25 self._realInventory = self._inventoryClass()
26 self.numberOfInventoryLookupsPerformed = 0
27
28 # cheap inheritance copied from asyncore
29 def __getattr__(self, attr):

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 2

BMConfigParserClass · 0.90
safeGetMethod · 0.80

Tested by

no test coverage detected