CheckResults: simplify self._data

This commit is contained in:
Brian Warner
2012-05-25 00:13:13 -07:00
parent e313cf6406
commit d446897282
3 changed files with 8 additions and 5 deletions

View File

@ -12,9 +12,6 @@ class CheckResults:
self.uri = uri
self.storage_index = storage_index
self.problems = []
self._data = {"count-corrupt-shares": 0,
"list-corrupt-shares": [],
}
self.summary = ""
self.report = []
@ -34,7 +31,7 @@ class CheckResults:
def set_needs_rebalancing(self, needs_rebalancing):
self.needs_rebalancing_p = bool(needs_rebalancing)
def set_data(self, data):
self._data.update(data)
self._data = data
def set_summary(self, summary):
assert isinstance(summary, str) # should be a single string
self.summary = summary