Skip to content

Commit abb6236

Browse files
authored
Python 3.10 compatibility
1 parent 12a0ee8 commit abb6236

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dyn/tm/services/dsf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"""This module contains wrappers for interfacing with every element of a
33
Traffic Director (DSF) service.
44
"""
5-
from collections import Iterable
5+
try:
6+
from collections.abc import Iterable
7+
except ImportError:
8+
from collections import Iterable
69
from dyn.compat import force_unicode, string_types
710
from dyn.tm.utils import APIList, Active
811
from dyn.tm.errors import DynectInvalidArgumentError

0 commit comments

Comments
 (0)