Renamed val to value according to other methods naming.

This commit is contained in:
Fabio Caccamo 2019-09-12 17:06:27 +02:00
parent 1fce9afeb0
commit a2c6e30853
1 changed files with 3 additions and 3 deletions

View File

@ -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