hush current pyflakes warnings (list comprehensions)

closes #2245
This commit is contained in:
Brian Warner 2014-06-23 13:54:07 -07:00
parent e9e8cb73fd
commit 99479226ed
6 changed files with 6 additions and 2 deletions

View File

@ -29,6 +29,7 @@ for catalog in sys.argv[1:]:
sdmf_versions[si][0].add( ver )
sdmf_versions[si][1].add( line )
del si
chk_multiple_encodings = [(si,lines)
for si,(encodings,lines) in chk_encodings.items()
if len(encodings) > 1]

View File

@ -56,8 +56,7 @@ class DownloadNode:
self._history = history
self._download_status = download_status
k, N = self._verifycap.needed_shares, self._verifycap.total_shares
self.share_hash_tree = IncompleteHashTree(N)
self.share_hash_tree = IncompleteHashTree(self._verifycap.total_shares)
# we guess the segment size, so Segmentation can pull non-initial
# segments in a single roundtrip. This populates

View File

@ -469,6 +469,7 @@ class Copier:
name, source = self.get_source_info(ss)
sources.append( (name, source) )
del name
have_source_dirs = bool([s for (name,s) in sources
if isinstance(s, (LocalDirectorySource,
TahoeDirectorySource))])

View File

@ -144,6 +144,7 @@ class LeaseCheckingCrawler(ShareCrawler):
self.increment(rec, "examined-buckets", 1)
if sharetype:
self.increment(rec, "examined-buckets-"+sharetype, 1)
del wks
try:
bucket_diskbytes = s.st_blocks * 512

View File

@ -52,6 +52,7 @@ if sys.argv[1] == "--stats":
if name not in stats:
stats[name] = 0
stats[name] += float(value)
del name
if last_stats:
delta = dict( [ (name,stats[name]-last_stats[name])
for name in stats ] )

View File

@ -428,6 +428,7 @@ class DownloadStatusPage(DownloadResultsRendererMixin, rend.Page):
rows[free_slot] = ev["finish_time"]
ev["row"] = (groupnum, free_slot)
new_events.append(ev)
del groupnum
# maybe also return serverid_to_group, groupnum_to_rows, and some
# indication of the highest finish_time
#