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 = {}
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue