Unverified Commit e7018ff6 authored by Isis Lovecruft's avatar Isis Lovecruft
Browse files

Call Distributor.setDistributorName() in subclass __init__s.

parent b659bbc7
......@@ -154,7 +154,7 @@ class IPBasedDistributor(Distributor):
logging.debug("Added splitter %s to IPBasedDistributor."
% self.splitter.__class__)
self.setDistributorName(self.__class__.__name__)
self.setDistributorName('HTTPS')
def prepopulateRings(self):
# populate all rings (for dumping assignments and testing)
......@@ -432,6 +432,8 @@ class EmailBasedDistributor(Distributor):
self.splitter = bridgedb.Bridges.FilteredBridgeSplitter(
key2, max_cached_rings=5)
self.setDistributorName('Email')
def clear(self):
self.splitter.clear()
#self.ring.clear() # should be take care of by above
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment