diff src/plugins/plugin_xep_0020.py @ 660:69a8bfd266a5

core, plugins: fixed bad use of children instead of elements() for domish.Element instances.
author Goffi <goffi@goffi.org>
date Tue, 15 Oct 2013 19:28:34 +0200
parents 84a6e83157c2
children bfabeedbf32e
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0020.py	Mon Oct 07 13:09:57 2013 +0200
+++ b/src/plugins/plugin_xep_0020.py	Tue Oct 15 19:28:34 2013 +0200
@@ -55,7 +55,7 @@
         """Check element's children to find feature elements
         @param elt: domish.Element
         @return: feature elements"""
-        return filter(lambda elt: elt.name == 'feature', elt.elements())
+        return [child for child in elt.elements() if child.name == 'feature']
 
     def getChoosedOptions(self, elt):
         """Return choosed feature for feature element