diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-05-07 11:01:33 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-05-09 08:11:10 +0200 |
commit | e76ff43236b62240b04a43679c5bb5db58a407cf (patch) | |
tree | 031aba4d30ce65f12b5fc2f4bc6a1059c8db387a /tools | |
parent | dcbbc7cef526c539da08299aee586902b7fedd9f (diff) | |
download | systemd-e76ff43236b62240b04a43679c5bb5db58a407cf.tar.gz |
tools/check-includes: compat with Python 3.7
I thought that 3.8 is enough. But Centos8 CI chokes on the walrus.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/check-includes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/check-includes.py b/tools/check-includes.py index abca2882f0..afb957a2e1 100755 --- a/tools/check-includes.py +++ b/tools/check-includes.py @@ -14,7 +14,8 @@ def check_file(filename): seen = set() good = True for n, line in enumerate(open(filename)): - if m := re.match(r'^\s*#\s*include\s*[<"](\S*)[>"]', line): + m = re.match(r'^\s*#\s*include\s*[<"](\S*)[>"]', line) + if m: include = m.group(1) if include in seen: try: |