From b2a32d1bba8add2c8ff42193f098ba44dceefcb1 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 24 May 2021 10:00:25 +0800 Subject: [PATCH] pybind/ceph_daemon: import OrderedDict from collections as OrderedDict is always provided by collections module since Python3.1, and we only support python3.6 and up, there is no need to try to import OrderedDict from collections.abc anymore. Signed-off-by: Kefu Chai --- src/pybind/ceph_daemon.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pybind/ceph_daemon.py b/src/pybind/ceph_daemon.py index 26eaeb1f60cd9..c86adc3ea616b 100644 --- a/src/pybind/ceph_daemon.py +++ b/src/pybind/ceph_daemon.py @@ -15,10 +15,7 @@ import json import socket import struct import time -try: - from collections.abc import OrderedDict -except ImportError: - from collections import OrderedDict +from collections import OrderedDict from fcntl import ioctl from fnmatch import fnmatch from prettytable import PrettyTable, HEADER -- 2.39.5