diff --git a/misc/operations_helpers/find-share-anomalies.py b/misc/operations_helpers/find-share-anomalies.py
index 76fe341..8dca511 100644
a
|
b
|
for catalog in sys.argv[1:]: |
29 | 29 | sdmf_versions[si][0].add( ver ) |
30 | 30 | sdmf_versions[si][1].add( line ) |
31 | 31 | |
| 32 | del si |
32 | 33 | chk_multiple_encodings = [(si,lines) |
33 | 34 | for si,(encodings,lines) in chk_encodings.items() |
34 | 35 | if len(encodings) > 1] |
diff --git a/src/allmydata/immutable/downloader/node.py b/src/allmydata/immutable/downloader/node.py
index e852fd3..fe00fdb 100644
a
|
b
|
class DownloadNode: |
56 | 56 | self._history = history |
57 | 57 | self._download_status = download_status |
58 | 58 | |
59 | | k, N = self._verifycap.needed_shares, self._verifycap.total_shares |
60 | | self.share_hash_tree = IncompleteHashTree(N) |
| 59 | self.share_hash_tree = IncompleteHashTree(self._verifycap.total_shares) |
61 | 60 | |
62 | 61 | # we guess the segment size, so Segmentation can pull non-initial |
63 | 62 | # segments in a single roundtrip. This populates |
diff --git a/src/allmydata/scripts/tahoe_cp.py b/src/allmydata/scripts/tahoe_cp.py
index 1ad460d..cf421ae 100644
a
|
b
|
class Copier: |
469 | 469 | name, source = self.get_source_info(ss) |
470 | 470 | sources.append( (name, source) ) |
471 | 471 | |
| 472 | del name |
472 | 473 | have_source_dirs = bool([s for (name,s) in sources |
473 | 474 | if isinstance(s, (LocalDirectorySource, |
474 | 475 | TahoeDirectorySource))]) |
diff --git a/src/allmydata/storage/expirer.py b/src/allmydata/storage/expirer.py
index 41823e7..a284d4f 100644
a
|
b
|
class LeaseCheckingCrawler(ShareCrawler): |
144 | 144 | self.increment(rec, "examined-buckets", 1) |
145 | 145 | if sharetype: |
146 | 146 | self.increment(rec, "examined-buckets-"+sharetype, 1) |
| 147 | del wks |
147 | 148 | |
148 | 149 | try: |
149 | 150 | bucket_diskbytes = s.st_blocks * 512 |
diff --git a/src/allmydata/test/check_load.py b/src/allmydata/test/check_load.py
index 197b369..4674844 100644
a
|
b
|
if sys.argv[1] == "--stats": |
52 | 52 | if name not in stats: |
53 | 53 | stats[name] = 0 |
54 | 54 | stats[name] += float(value) |
| 55 | del name |
55 | 56 | if last_stats: |
56 | 57 | delta = dict( [ (name,stats[name]-last_stats[name]) |
57 | 58 | for name in stats ] ) |
diff --git a/src/allmydata/web/status.py b/src/allmydata/web/status.py
index 89e6b64..b363f85 100644
a
|
b
|
class DownloadStatusPage(DownloadResultsRendererMixin, rend.Page): |
428 | 428 | rows[free_slot] = ev["finish_time"] |
429 | 429 | ev["row"] = (groupnum, free_slot) |
430 | 430 | new_events.append(ev) |
| 431 | del groupnum |
431 | 432 | # maybe also return serverid_to_group, groupnum_to_rows, and some |
432 | 433 | # indication of the highest finish_time |
433 | 434 | # |