MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / parseBool

Method parseBool

config/settings.py:76–80  ·  view source on GitHub ↗
(value:str)

Source from the content-addressed store, hash-verified

74
75 @staticmethod
76 def parseBool(value:str)->bool:
77 if isinstance(value, bool):
78 return value
79 else:
80 return value.lower() in ('yes','true','1','t')
81
82 @staticmethod
83 def set_value(section, key, value):

Callers 2

set_valueMethod · 0.80
_get_boolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected