fix for python3

alfred-data
Nils Schneider 2012-05-04 12:03:37 +02:00
parent bbf9b3780a
commit b97492f6c7
1 changed files with 1 additions and 1 deletions

View File

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