[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/develop] Add note about an annoying technical limitation for filter descriptions.
commit 607c0a6b345dc5eba81eec1d8aeddb4302b09800
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Sat Mar 28 02:35:06 2015 +0000
Add note about an annoying technical limitation for filter descriptions.
---
lib/bridgedb/Filters.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/bridgedb/Filters.py b/lib/bridgedb/Filters.py
index b06a605..eadf012 100644
--- a/lib/bridgedb/Filters.py
+++ b/lib/bridgedb/Filters.py
@@ -27,6 +27,8 @@ def filterAssignBridgesToRing(hmac, numRings, assignedRing):
return False
_assignBridgesToRing.__name__ = ("filterAssignBridgesToRing(%s, %s, %s)"
% (hmac, numRings, assignedRing))
+ # XXX The `description` attribute must contain an `=`, or else
+ # dumpAssignments() will not work correctly.
setattr(_assignBridgesToRing, "description", "ring=%d" % assignedRing)
funcs[ruleset] = _assignBridgesToRing
return _assignBridgesToRing
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits