From 5128defbc3996af5f8e28f5681ba4ad5b3c5d023 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Fri, 17 Sep 2021 14:59:19 +0200 Subject: meta: correct collections vs collections.abc deprecation collections.abc is available since 3.3 and doesn't need special handling. (From OE-Core rev: 01152c9410ba00274c8415a5d914dc33dfd0cf46) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- meta/lib/oe/maketype.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'meta') diff --git a/meta/lib/oe/maketype.py b/meta/lib/oe/maketype.py index d929c8b3e5..d36082c535 100644 --- a/meta/lib/oe/maketype.py +++ b/meta/lib/oe/maketype.py @@ -10,12 +10,7 @@ the arguments of the type's factory for details. import inspect import oe.types as types -try: - # Python 3.7+ - from collections.abc import Callable -except ImportError: - # Python < 3.7 - from collections import Callable +from collections.abc import Callable available_types = {} -- cgit v1.2.3-54-g00ecf