From: Zooko O'Whielacronx Date: Sat, 31 Mar 2007 01:00:40 +0000 (-0700) Subject: assert that only dicts get passed to _got_response() X-Git-Url: https://git.rkrishnan.org/pf/content/index.php?a=commitdiff_plain;h=077eb7507c947ec88007d25802b2d8f1d179a192;p=tahoe-lafs%2Ftahoe-lafs.git assert that only dicts get passed to _got_response() --- diff --git a/src/allmydata/download.py b/src/allmydata/download.py index eacc9eff..12cc03de 100644 --- a/src/allmydata/download.py +++ b/src/allmydata/download.py @@ -187,6 +187,7 @@ class FileDownloader: return defer.DeferredList(dl) def _got_response(self, buckets, connection): + _assert(isinstance(buckets, dict), buckets) # soon foolscap will check this for us with its DictOf schema constraint for sharenum, bucket in buckets.iteritems(): self._share_buckets.setdefault(sharenum, set()).add(bucket)