Ticket #2245: hush-pyflakes.diff

File hush-pyflakes.diff, 3.3 KB (added by warner, at 2014-06-23T20:51:00Z)

patch to hush pyflakes

  • misc/operations_helpers/find-share-anomalies.py

    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:]: 
    2929            sdmf_versions[si][0].add( ver )
    3030            sdmf_versions[si][1].add( line )
    3131
     32del si
    3233chk_multiple_encodings = [(si,lines)
    3334                          for si,(encodings,lines) in chk_encodings.items()
    3435                          if len(encodings) > 1]
  • src/allmydata/immutable/downloader/node.py

    diff --git a/src/allmydata/immutable/downloader/node.py b/src/allmydata/immutable/downloader/node.py
    index e852fd3..fe00fdb 100644
    a b class DownloadNode: 
    5656        self._history = history
    5757        self._download_status = download_status
    5858
    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)
    6160
    6261        # we guess the segment size, so Segmentation can pull non-initial
    6362        # segments in a single roundtrip. This populates
  • src/allmydata/scripts/tahoe_cp.py

    diff --git a/src/allmydata/scripts/tahoe_cp.py b/src/allmydata/scripts/tahoe_cp.py
    index 1ad460d..cf421ae 100644
    a b class Copier: 
    469469            name, source = self.get_source_info(ss)
    470470            sources.append( (name, source) )
    471471
     472        del name
    472473        have_source_dirs = bool([s for (name,s) in sources
    473474                                 if isinstance(s, (LocalDirectorySource,
    474475                                                   TahoeDirectorySource))])
  • src/allmydata/storage/expirer.py

    diff --git a/src/allmydata/storage/expirer.py b/src/allmydata/storage/expirer.py
    index 41823e7..a284d4f 100644
    a b class LeaseCheckingCrawler(ShareCrawler): 
    144144        self.increment(rec, "examined-buckets", 1)
    145145        if sharetype:
    146146            self.increment(rec, "examined-buckets-"+sharetype, 1)
     147        del wks
    147148
    148149        try:
    149150            bucket_diskbytes = s.st_blocks * 512
  • src/allmydata/test/check_load.py

    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": 
    5252                if name not in stats:
    5353                    stats[name] = 0
    5454                stats[name] += float(value)
     55        del name
    5556        if last_stats:
    5657            delta = dict( [ (name,stats[name]-last_stats[name])
    5758                            for name in stats ] )
  • src/allmydata/web/status.py

    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): 
    428428                rows[free_slot] = ev["finish_time"]
    429429            ev["row"] = (groupnum, free_slot)
    430430            new_events.append(ev)
     431        del groupnum
    431432        # maybe also return serverid_to_group, groupnum_to_rows, and some
    432433        # indication of the highest finish_time
    433434        #