From b97492f6c72de65f66b3ba0382b060b71107dad1 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Fri, 4 May 2012 12:03:37 +0200 Subject: [PATCH] fix for python3 --- bat2nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bat2nodes.py b/bat2nodes.py index 5a607de..b9e6d3b 100644 --- a/bat2nodes.py +++ b/bat2nodes.py @@ -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