diff --git a/consulate/models/base.py b/consulate/models/base.py index 50802bf..5ef1b7d 100644 --- a/consulate/models/base.py +++ b/consulate/models/base.py @@ -3,10 +3,13 @@ Base Model """ -import collections +try: + from collections import Iterable # noqa +except ImportError: + from collections.abc import Iterable # noqa -class Model(collections.Iterable): +class Model(Iterable): """A model contains an __attribute__ map that defines the name, its type for type validation, an optional validation method, a method used to