git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c920485
)
dtoc: Avoid using subscripts on match objects
author
Simon Glass
<sjg@chromium.org>
Sun, 4 Jul 2021 18:19:43 +0000
(12:19 -0600)
committer
Simon Glass
<sjg@chromium.org>
Wed, 21 Jul 2021 16:27:33 +0000
(10:27 -0600)
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>
tools/dtoc/src_scan.py
patch
|
blob
|
history
diff --git
a/tools/dtoc/src_scan.py
b/tools/dtoc/src_scan.py
index
2db9688
..
1dbb567
100644
(file)
--- 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():