diff --git a/tools/sym_comments.py b/tools/sym_comments.py index af0a936020c..9d8897d776c 100755 --- a/tools/sym_comments.py +++ b/tools/sym_comments.py @@ -34,7 +34,7 @@ def main(): cur_label = None for line in file: line = line.rstrip() - if (m = re.match(sym_def_rx, line)): + if (m := re.match(sym_def_rx, line)): sym, rest = m.group(1), m.group(2) if sym is None and rest is None: sym, rest = m.group(3), m.group(4)