# HG changeset patch # User Charly COSTE # Date 1266585824 -3600 # Node ID 8f67684fee232bebe0c85f62262f68ce0e9b8c05 # Parent 60ee2b91461660b9e3ce6c2e44943a715f8658e0 minor fix to Bot.findBridges(), memory usage improvement Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- a/bot.py +++ b/bot.py @@ -700,7 +700,7 @@ class Bot(threading.Thread): def findBridges(self, str_array): # TODO: lock self.bridges for thread safety bridges = [b for b in self.bridges] - for bridge in [b for b in bridges]: + for bridge in self.bridges: for s in str_array: if not s in str(bridge): bridges.remove(bridge)