Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | Upstream-Status: Backport |
| 2 | Signed-off-by: Ross Burton <ross.burton@arm.com> |
| 3 | |
| 4 | From 89958f7f30ec722e30e1bcffdeab547c874fa475 Mon Sep 17 00:00:00 2001 |
| 5 | From: Adrian Herrera <adrian.herrera@arm.com> |
| 6 | Date: Mon, 15 Mar 2021 13:14:44 +0000 |
| 7 | Subject: [PATCH] python: debug, fix Mapping import |
| 8 | |
| 9 | Change "collections.Mapping" to "collections.abc.Mapping". |
| 10 | "collections.Mapping" was an alias, it is deprecated starting from Python 3.3, and it will be removed in Python 3.10. |
| 11 | |
| 12 | Change-Id: Ic257e3c5206eb3d48d4eed85a93fac48bd3b8dc4 |
| 13 | Signed-off-by: Adrian Herrera <adrian.herrera@arm.com> |
| 14 | Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/43023 |
| 15 | Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> |
| 16 | Maintainer: Jason Lowe-Power <power.jg@gmail.com> |
| 17 | Tested-by: kokoro <noreply+kokoro@google.com> |
| 18 | --- |
| 19 | src/python/m5/debug.py | 2 +- |
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 21 | |
| 22 | diff --git a/src/python/m5/debug.py b/src/python/m5/debug.py |
| 23 | index d808850cc..787a39ece 100644 |
| 24 | --- a/src/python/m5/debug.py |
| 25 | +++ b/src/python/m5/debug.py |
| 26 | @@ -26,7 +26,7 @@ |
| 27 | |
| 28 | from __future__ import print_function |
| 29 | |
| 30 | -from collections import Mapping |
| 31 | +from collections.abc import Mapping |
| 32 | |
| 33 | import _m5.debug |
| 34 | from _m5.debug import SimpleFlag, CompoundFlag |
| 35 | -- |
| 36 | 2.25.1 |
| 37 | |