diff options
Diffstat (limited to 'meta/lib/oe/maketype.py')
-rw-r--r-- | meta/lib/oe/maketype.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/lib/oe/maketype.py b/meta/lib/oe/maketype.py index d929c8b3e5..7a83bdf602 100644 --- a/meta/lib/oe/maketype.py +++ b/meta/lib/oe/maketype.py | |||
@@ -1,4 +1,6 @@ | |||
1 | # | 1 | # |
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | 4 | # SPDX-License-Identifier: GPL-2.0-only |
3 | # | 5 | # |
4 | """OpenEmbedded variable typing support | 6 | """OpenEmbedded variable typing support |
@@ -10,12 +12,7 @@ the arguments of the type's factory for details. | |||
10 | 12 | ||
11 | import inspect | 13 | import inspect |
12 | import oe.types as types | 14 | import oe.types as types |
13 | try: | 15 | from collections.abc import Callable |
14 | # Python 3.7+ | ||
15 | from collections.abc import Callable | ||
16 | except ImportError: | ||
17 | # Python < 3.7 | ||
18 | from collections import Callable | ||
19 | 16 | ||
20 | available_types = {} | 17 | available_types = {} |
21 | 18 | ||