diff --git a/benedict/utils/utility_util.py b/benedict/utils/utility_util.py index cbc73f6..39db911 100644 --- a/benedict/utils/utility_util.py +++ b/benedict/utils/utility_util.py @@ -47,9 +47,9 @@ def filter(d, predicate): f = {} keys = d.keys() for key in keys: - val = d.get(key, None) - if predicate(key, val): - f[key] = val + value = d.get(key, None) + if predicate(key, value): + f[key] = value return f