diff options
Diffstat (limited to 'kvmd/tools.py')
-rw-r--r-- | kvmd/tools.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/kvmd/tools.py b/kvmd/tools.py index 773fcb5a..1c03f8ce 100644 --- a/kvmd/tools.py +++ b/kvmd/tools.py @@ -45,15 +45,6 @@ def efmt(err: Exception) -> str: # ===== -def merge(dest: dict, src: dict) -> None: - for key in src: - if key in dest: - if isinstance(dest[key], dict) and isinstance(src[key], dict): - merge(dest[key], src[key]) - continue - dest[key] = src[key] - - def rget(dct: dict, *keys: Hashable) -> dict: result = functools.reduce((lambda nxt, key: nxt.get(key, {})), keys, dct) if not isinstance(result, dict): |