[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/master] Don't add duplicate ports to an addr.PortList.



commit 57a902b2e77d31066aee9400d5f4102e0fdc8432
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Sat Dec 7 04:44:12 2013 +0000

    Don't add duplicate ports to an addr.PortList.
---
 lib/bridgedb/parse/addr.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/parse/addr.py b/lib/bridgedb/parse/addr.py
index ed00925..6d72e21 100644
--- a/lib/bridgedb/parse/addr.py
+++ b/lib/bridgedb/parse/addr.py
@@ -341,7 +341,7 @@ class PortList(object):
             except InvalidPort:
                 raise
 
-            self.ports.update(portlist)
+            self.ports.update(set(portlist))
 
     def __iter__(self):
         """Iterate through all ports in this PortList."""



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits