Renamed val to value according to other methods naming.
This commit is contained in:
parent
1fce9afeb0
commit
a2c6e30853
|
@ -47,9 +47,9 @@ def filter(d, predicate):
|
||||||
f = {}
|
f = {}
|
||||||
keys = d.keys()
|
keys = d.keys()
|
||||||
for key in keys:
|
for key in keys:
|
||||||
val = d.get(key, None)
|
value = d.get(key, None)
|
||||||
if predicate(key, val):
|
if predicate(key, value):
|
||||||
f[key] = val
|
f[key] = value
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue