# HG changeset patch # User souliane # Date 1441863434 -7200 # Node ID fcfec24c87f3d6de73dfb885fa89467d19d1de33 # Parent 83f71763e1a7ea4d504a445e03ef65f4a48f414d plugin XEP-0060: fixes a one-line loop diff -r 83f71763e1a7 -r fcfec24c87f3 src/plugins/plugin_xep_0060.py --- 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)