Mercurial > piecrust2
diff piecrust/configuration.py @ 1167:c0c00dc1eac7
core: Remove deprecation warning about collections.abc.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 04 Oct 2019 10:07:38 -0700 |
parents | 7e51d14097cb |
children |
line wrap: on
line diff
--- a/piecrust/configuration.py Fri Oct 04 09:01:41 2019 -0700 +++ b/piecrust/configuration.py Fri Oct 04 10:07:38 2019 -0700 @@ -268,7 +268,7 @@ mapping = collections.OrderedDict() for key_node, value_node in node.value: key = self.construct_object(key_node, deep=deep) - if not isinstance(key, collections.Hashable): + if not isinstance(key, collections.abc.Hashable): raise ConstructorError( "while constructing a mapping", node.start_mark, "found unhashable key", key_node.start_mark)