MCPcopy
hub / github.com/pyload/pyload / get

Method get

module/ConfigParser.py:280–289  ·  view source on GitHub ↗

get value

(self, section, option)

Source from the content-addressed store, hash-verified

278
279
280 def get(self, section, option):
281 """get value"""
282 val = self.config[section][option]["value"]
283 try:
284 if type(val) in (str, unicode):
285 return val.decode("utf8")
286 else:
287 return val
288 except:
289 return val
290
291 def set(self, section, option, value):
292 """set value"""

Callers 2

slotConnectMethod · 0.95
__getitem__Method · 0.45

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected