changeset 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 d8167cbee2f5
children 10520472cc73
files piecrust/configuration.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)