diff sat/plugins/plugin_xep_0329.py @ 3032:95e2fd14a761

plugin XEP-0329: fixed ShareNode item() and values after Python 3 port
author Goffi <goffi@goffi.org>
date Fri, 16 Aug 2019 17:06:44 +0200
parents ab2696e34d29
children fee60f17ebac
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0329.py	Fri Aug 16 17:06:43 2019 +0200
+++ b/sat/plugins/plugin_xep_0329.py	Fri Aug 16 17:06:44 2019 +0200
@@ -105,11 +105,11 @@
     def __iter__(self):
         return self.children.__iter__()
 
-    def iteritems(self):
-        return iter(self.children.items())
+    def items(self):
+        return self.children.items()
 
-    def itervalues(self):
-        return iter(self.children.values())
+    def values(self):
+        return self.children.values()
 
     def getOrCreate(self, name, type_=TYPE_VIRTUAL, access=None):
         """Get a node or create a virtual node and return it"""