commit 57a902b2e77d31066aee9400d5f4102e0fdc8432 Author: Isis Lovecruft isis@torproject.org 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@lists.torproject.org