Mercurial > libervia-backend
diff src/plugins/plugin_xep_0060.py @ 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 | 0f0889028eea |
children | e0bde0d0b321 |
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)