From 3142538b0d4dd35432fb2366838f1f703991c1fd Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Sat, 8 Oct 2011 22:05:31 -0700
Subject: [PATCH] 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

---
 misc/coding_tools/make-canary-files.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:
-- 
2.45.2