All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] meta: correct collections vs collections.abc deprecation
@ 2021-09-17 12:59 Alexander Kanavin
  2021-09-17 12:59 ` [PATCH 2/4] wic: keep rootfs_size as integer Alexander Kanavin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alexander Kanavin @ 2021-09-17 12:59 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexander Kanavin

collections.abc is available since 3.3 and doesn't need special handling.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meta/lib/oe/maketype.py          | 7 +------
 scripts/lib/build_perf/report.py | 3 ++-
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/meta/lib/oe/maketype.py b/meta/lib/oe/maketype.py
index d929c8b3e54..d36082c5351 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 = {}
 
diff --git a/scripts/lib/build_perf/report.py b/scripts/lib/build_perf/report.py
index 4e8e2a8a939..ab77424cc74 100644
--- a/scripts/lib/build_perf/report.py
+++ b/scripts/lib/build_perf/report.py
@@ -4,7 +4,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
 #
 """Handling of build perf test reports"""
-from collections import OrderedDict, Mapping, namedtuple
+from collections import OrderedDict, namedtuple
+from collections.abc import Mapping
 from datetime import datetime, timezone
 from numbers import Number
 from statistics import mean, stdev, variance
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-19 10:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 12:59 [PATCH 1/4] meta: correct collections vs collections.abc deprecation Alexander Kanavin
2021-09-17 12:59 ` [PATCH 2/4] wic: keep rootfs_size as integer Alexander Kanavin
2021-09-17 12:59 ` [PATCH 3/4] testimage: copy the task log and qemu console log to tmp/log/oeqa Alexander Kanavin
2021-09-19 10:42   ` [OE-core] " Richard Purdie
2021-09-17 12:59 ` [PATCH 4/4] cpan-base.bbclass: use raw string for regexp Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.