From: Kefu Chai Date: Fri, 26 Jul 2019 14:43:00 +0000 (+0800) Subject: pybind/mgr/restful: use dict.items() for py3 compatibility X-Git-Tag: v14.2.12~118^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36670%2Fhead;p=ceph.git pybind/mgr/restful: use dict.items() for py3 compatibility Signed-off-by: Kefu Chai (cherry picked from commit a46292b254bb0ea6a1fc13475989659ce96276b3) --- 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)))