fix import of iterable in six library
import six
+try:
+ from collections.abc import Iterable
+except ImportError: # FIXME: Remove if Python2 support is removed
+ from collections import Iterable
def make_tuple(value):
""" Converts the value into a tuple if the value is an iterable with the following exceptions:
@@ -12,7 +16,7 @@ def make_tuple(value):
if isinstance(value, six.string_types):
return value,
- if isinstance(value, six.moves.collections_abc.Iterable):
+ if isinstance(value, Iterable):
return tuple(value)
else:
return value,
