From 082f516a33d14c836cd47293cb29c83ae80e294d Mon Sep 17 00:00:00 2001 From: Valerii Ponomarov Date: Wed, 20 Nov 2019 16:41:16 +0530 Subject: [py2to3] Replace usage of ".iteitems()" attr with ".items()" Dict attribute called "iteritems()" is not supported in the py3. So, replace it's usage with another similar attr called "items()". Change-Id: I130b7f67f0a2d5da5ed6c3d792f5ff024ba148f4 Signed-off-by: Valerii Ponomarov --- glustolibs-gluster/glustolibs/gluster/gluster_base_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glustolibs-gluster/glustolibs/gluster/gluster_base_class.py') diff --git a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py index 97a9fe365..b475eddd1 100644 --- a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py +++ b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py @@ -856,7 +856,7 @@ class GlusterBlockBaseClass(GlusterBaseClass): # Log the block_info_dict g.log.info("Logging Block Info:") - for key, value in cls.block_info_dict.iteritems(): + for key, value in cls.block_info_dict.items(): g.log.info("Glusto block info: %s\n %s" % (key, value)) return True -- cgit