changeset 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 98d1f34ce5b9
children 0d55a52056f7
files sat/plugins/plugin_xep_0329.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
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"""