From: david-sarah Date: Sun, 9 Oct 2011 05:05:31 +0000 (-0700) Subject: misc/coding_tools/make-canary-files.py: fix a suspicious capture reported by check... X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/%22doc.html/provisioning?a=commitdiff_plain;h=3142538b0d4dd35432fb2366838f1f703991c1fd;p=tahoe-lafs%2Ftahoe-lafs.git misc/coding_tools/make-canary-files.py: fix a suspicious capture reported by check-miscaptures (although it happens not to be a bug because the callback will be processed synchronously). refs #1556 --- diff --git a/misc/coding_tools/make-canary-files.py b/misc/coding_tools/make-canary-files.py index 44f0348a..57f900a5 100644 --- a/misc/coding_tools/make-canary-files.py +++ b/misc/coding_tools/make-canary-files.py @@ -116,7 +116,7 @@ def find_share_for_target(target): u = upload.Data(data, convergence) eu = upload.EncryptAnUploadable(u) d = eu.get_storage_index() # this happens to run synchronously - def _got_si(si): + def _got_si(si, data=data): if verbose: print "SI", base32.b2a(si), peerlist = get_permuted_peers(si) if peerlist[0] == target: