(properties: ConfigParser, group: str, key: str, default)
| 65 | return properties[group][key] |
| 66 | |
| 67 | def get_property_or_default(properties: ConfigParser, group: str, key: str, default): |
| 68 | if group not in properties.sections(): |
| 69 | return default |
| 70 | if key not in properties[group].keys(): |
| 71 | return default |
| 72 | return properties[group][key] |
| 73 | |
| 74 | def get_property_or_none(properties: ConfigParser, group: str, key: str): |
| 75 | return get_property_or_default(properties, group, key, None) |
no outgoing calls
no test coverage detected