删除配置值并保存
(cls, key)
| 185 | |
| 186 | @classmethod |
| 187 | def delete(cls, key): |
| 188 | """删除配置值并保存""" |
| 189 | instance = cls.get_instance() |
| 190 | with instance._lock: |
| 191 | if key in instance._config_data: |
| 192 | del instance._config_data[key] |
| 193 | instance._save_config() |
| 194 | |
| 195 | @classmethod |
| 196 | def clear(cls): |
nothing calls this directly
no test coverage detected