Fix index d'une valeur dans une liste

This commit is contained in:
redstorm45 2018-02-16 10:22:27 +01:00
parent 69f2a6f8a8
commit cd44b6815a

View file

@ -440,7 +440,7 @@ def find_by_common(L1, L2, f_prop):
for i, e1 in enumerate(L1):
prop1 = f_prop(e1)
if prop1 in Lprop2:
j = Lprop2.find(prop1)
j = Lprop2.index(prop1)
e2 = L2[j]
found.append((e1, e2))
break