From 83514aa8ee11b9e6efeecb70feabe3a68d5b6615 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 28 Jun 2020 20:53:13 +0800 Subject: [PATCH] pybind/mgr/selftest: drop py2 support Signed-off-by: Kefu Chai --- src/pybind/mgr/selftest/module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pybind/mgr/selftest/module.py b/src/pybind/mgr/selftest/module.py index 298d8cca1f8..c6decf2fc8c 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"]), -- 2.39.5