# HG changeset patch # User Ludovic Chabant # Date 1570208858 25200 # Node ID c0c00dc1eac703a9b145d869fd533f3674aae08a # Parent d8167cbee2f5f62d458d4e40666856c013bca751 core: Remove deprecation warning about collections.abc. diff -r d8167cbee2f5 -r c0c00dc1eac7 piecrust/configuration.py --- 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)