changeset 1512:fcfec24c87f3

plugin XEP-0060: fixes a one-line loop
author souliane <souliane@mailoo.org>
date Thu, 10 Sep 2015 07:37:14 +0200
parents 83f71763e1a7
children 955221487a3e
files src/plugins/plugin_xep_0060.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0060.py	Thu Sep 10 07:35:43 2015 +0200
+++ b/src/plugins/plugin_xep_0060.py	Thu Sep 10 07:37:14 2015 +0200
@@ -255,7 +255,7 @@
             metadata = {}
             if rsm_request is not None:
                 rsm_data = client.pubsub_client.getRSMResponse(ext_data['id'])
-                metadata.update({'rsm_{}'.format(key): value for key, value in rsm_data})
+                metadata.update({'rsm_{}'.format(key): value for key, value in rsm_data.iteritems()})
             return (items, metadata)
 
         d.addCallback(addMetadata)