From 9efb375dd935421cb701b36d53ceeabce0af3e81 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 21 Apr 2015 23:54:01 +0100 Subject: [PATCH] Better variable name. Signed-off-by: Daira Hopwood --- src/allmydata/frontends/drop_upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py index 8664da1a..f4e4b47e 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -231,8 +231,8 @@ class DropUploader(service.MultiService): return None elif os.path.isfile(path): d.addCallback(_add_file) - def add_db_entry(val): - filecap = val.get_uri() + def add_db_entry(filenode): + filecap = filenode.get_uri() print "filename %s filecap %s" % (path, filecap) s = os.stat(path) self._db.did_upload_file(filecap, path.decode('UTF-8'), s.st_mtime, s.st_ctime, s.st_size) -- 2.45.2