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

Method set

src/bmconfigparser.py:39–45  ·  view source on GitHub ↗
(self, section, option, value=None)

Source from the content-addressed store, hash-verified

37@Singleton
38class BMConfigParser(ConfigParser.SafeConfigParser):
39 def set(self, section, option, value=None):
40 if self._optcre is self.OPTCRE or value:
41 if not isinstance(value, basestring):
42 raise TypeError("option values must be strings")
43 if not self.validate(section, option, value):
44 raise ValueError("Invalid value %s" % str(value))
45 return ConfigParser.ConfigParser.set(self, section, option, value)
46
47 def get(self, section, option, raw=False, variables=None):
48 try:

Callers 15

configInitFunction · 0.80
apiInitFunction · 0.80
bmSettingsFunction · 0.80
runMethod · 0.80
readMethod · 0.80
doPOWForMyV2PubkeyMethod · 0.80
loadConfigFunction · 0.80
ensureNamecoinOptionsFunction · 0.80
stopThreadMethod · 0.80
runMethod · 0.80

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected