From 28a37935e9d2311b9761a72b066b6983f8b22e98 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 (cherry picked from commit a46292b254bb0ea6a1fc13475989659ce96276b3) --- 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 f44ba26396e3..fbe5e208670d 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