diff options
author | Simon Glass <sjg@chromium.org> | 2021-07-04 12:19:43 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-07-21 10:27:33 -0600 |
commit | c7967653daffa56caaa410937107271b0dc682a9 (patch) | |
tree | 09d0cd44fd8411c2bb7b6bcaa0df7a884d32f892 /tools/dtoc | |
parent | c9204859bbdb924cda811813c545032971656480 (diff) | |
download | u-boot-c7967653daffa56caaa410937107271b0dc682a9.tar.gz u-boot-c7967653daffa56caaa410937107271b0dc682a9.tar.bz2 u-boot-c7967653daffa56caaa410937107271b0dc682a9.zip |
dtoc: Avoid using subscripts on match objects
These are not supported before Python 3.6 so avoid them.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Walter Lozano <walter.lozano@collabora.com>
Diffstat (limited to 'tools/dtoc')
-rw-r--r-- | tools/dtoc/src_scan.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dtoc/src_scan.py b/tools/dtoc/src_scan.py index 2db96884c8..1dbb56712a 100644 --- a/tools/dtoc/src_scan.py +++ b/tools/dtoc/src_scan.py @@ -555,7 +555,7 @@ class Scanner: if ids_m: ids_name = ids_m.group(1) elif m_alias: - self._driver_aliases[m_alias[2]] = m_alias[1] + self._driver_aliases[m_alias.group(2)] = m_alias.group(1) # Make the updates based on what we found for driver in drivers.values(): |