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

This commit is contained in:
david-sarah 2011-10-08 22:05:31 -07:00
parent 22da015dd1
commit 3142538b0d

View File

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