From b4f34236a678dad48f0d6f7a183fa874152baec3 Mon Sep 17 00:00:00 2001 From: Julian Rother Date: Thu, 16 Dec 2021 06:41:51 +0100 Subject: [PATCH] Python 3.10 update --- filter_plugins/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter_plugins/filters.py b/filter_plugins/filters.py index fdf1bcb..b99684e 100755 --- a/filter_plugins/filters.py +++ b/filter_plugins/filters.py @@ -16,7 +16,7 @@ class FilterModule(object): } for override in rule_defaults: rule.update(override) - if not isinstance(input_rules[rule_name], collections.Mapping): + if not isinstance(input_rules[rule_name], collections.abc.Mapping): rule['matches'] = input_rules[rule_name] else: rule.update(input_rules[rule_name])