changeset 183:8f67684fee23

minor fix to Bot.findBridges(), memory usage improvement Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Fri, 19 Feb 2010 14:23:44 +0100
parents 60ee2b914616
children 1e5308a0db55
files bot.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)