From abb62367fd4960e6b0fa19afa379cf93e626d8da Mon Sep 17 00:00:00 2001 From: siijmDqEaiPR <100380192+siijmDqEaiPR@users.noreply.github.com> Date: Fri, 25 Feb 2022 16:33:32 -0500 Subject: [PATCH] Python 3.10 compatibility --- dyn/tm/services/dsf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dyn/tm/services/dsf.py b/dyn/tm/services/dsf.py index 0022d8a..3801a21 100644 --- a/dyn/tm/services/dsf.py +++ b/dyn/tm/services/dsf.py @@ -2,7 +2,10 @@ """This module contains wrappers for interfacing with every element of a Traffic Director (DSF) service. """ -from collections import Iterable +try: + from collections.abc import Iterable +except ImportError: + from collections import Iterable from dyn.compat import force_unicode, string_types from dyn.tm.utils import APIList, Active from dyn.tm.errors import DynectInvalidArgumentError