fix for python3

This commit is contained in:
Nils Schneider 2012-05-04 12:03:37 +02:00
parent bbf9b3780a
commit b97492f6c7

View file

@ -139,7 +139,7 @@ if options['gateway']:
def map_link(nodes, pair): def map_link(nodes, pair):
distance = 80 distance = 80
strength = 0.2 strength = 0.2
if filter(lambda x: nodes[x].group == 3, pair): if any(filter(lambda x: nodes[x].group == 3, pair)):
distance = 10 distance = 10
strength = 1 strength = 1