[tor-commits] [bridgedb/master] Add note about an annoying technical limitation for filter descriptions.
isis at torproject.org
isis at torproject.org
Fri May 1 07:10:57 UTC 2015
commit 607c0a6b345dc5eba81eec1d8aeddb4302b09800
Author: Isis Lovecruft <isis at torproject.org>
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
More information about the tor-commits
mailing list