From: Kefu Chai Date: Sun, 28 Jun 2020 12:53:13 +0000 (+0800) Subject: pybind/mgr/selftest: drop py2 support X-Git-Tag: v16.1.0~1844^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=83514aa8ee11b9e6efeecb70feabe3a68d5b6615;p=ceph.git pybind/mgr/selftest: drop py2 support Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/selftest/module.py b/src/pybind/mgr/selftest/module.py index 298d8cca1f83..c6decf2fc8cf 100644 --- a/src/pybind/mgr/selftest/module.py +++ b/src/pybind/mgr/selftest/module.py @@ -4,7 +4,6 @@ import threading import random import json import errno -import six class Module(MgrModule): @@ -173,7 +172,7 @@ class Module(MgrModule): return -1, "", "Failed to decode JSON input: {}".format(e) try: - for check, info in six.iteritems(checks): + for check, info in checks.items(): self._health[check] = { "severity": str(info["severity"]), "summary": str(info["summary"]),