Commit c7967653 authored by Simon Glass's avatar Simon Glass
Browse files

dtoc: Avoid using subscripts on match objects



These are not supported before Python 3.6 so avoid them.
Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent c9204859
......@@ -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():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment