Files
hudozka/modules/Fetch/utils.py
T
2018-11-28 18:37:16 +03:00

14 lines
277 B
Python

def until(keys: list):
def select(value):
for key in keys:
if key in value:
return value[key]
return None
return select
def copy(source: dict, destination: dict):
for k, v in source.items():
destination[k] = v