From a46292b254bb0ea6a1fc13475989659ce96276b3 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 26 Jul 2019 22:43:00 +0800 Subject: [PATCH] pybind/mgr/restful: use dict.items() for py3 compatibility Signed-off-by: Kefu Chai --- src/pybind/mgr/restful/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/restful/common.py b/src/pybind/mgr/restful/common.py index 6eb3e416a80..9e4e18bbde0 100644 --- a/src/pybind/mgr/restful/common.py +++ b/src/pybind/mgr/restful/common.py @@ -34,7 +34,7 @@ POOL_ARGS = POOL_PROPERTIES + [x for x,_ in POOL_QUOTA_PROPERTIES] def humanify_command(command): out = [command['prefix']] - for arg, val in command.iteritems(): + for arg, val in command.items(): if arg != 'prefix': out.append("%s=%s" % (str(arg), str(val))) -- 2.47.3