changeset 995:4dbe8e57ff51

plugin XEP-0096: fixed a bug introduced by the log refactoring
author Goffi <goffi@goffi.org>
date Sun, 20 Apr 2014 11:51:48 +0200
parents 652c01ca69b1
children e99b6dfd567b
files src/plugins/plugin_xep_0096.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0096.py	Sat Apr 19 20:11:23 2014 +0200
+++ b/src/plugins/plugin_xep_0096.py	Sun Apr 20 11:51:48 2014 +0200
@@ -276,10 +276,10 @@
 
         file_transfer_elts = []
 
-        statlog.info = os.stat(filepath)
+        statinfo = os.stat(filepath)
         file_elt = domish.Element((PROFILE, 'file'))
         file_elt['name'] = os.path.basename(filepath)
-        size = file_elt['size'] = str(statlog.info.st_size)
+        size = file_elt['size'] = str(statinfo.st_size)
         file_transfer_elts.append(file_elt)
 
         file_transfer_elts.append(domish.Element((None, 'range')))