Don't use set() since it's not in python 2.3.

Just use a plain list instead.  Technically probably slightly worse
asymptotic behaviour, but it's not like we'll have a million sockets anyway.
This commit is contained in:
Avery Pennarun
2010-10-01 14:23:27 -07:00
parent da774f3f46
commit c403a83ab8
4 changed files with 34 additions and 21 deletions

View File

@ -28,3 +28,10 @@ def debug3(s):
class Fatal(Exception):
pass
def list_contains_any(l, sub):
for i in sub:
if i in l:
return True
return False