From e76ff43236b62240b04a43679c5bb5db58a407cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 7 May 2023 11:01:33 +0200 Subject: tools/check-includes: compat with Python 3.7 I thought that 3.8 is enough. But Centos8 CI chokes on the walrus. --- tools/check-includes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') 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: -- cgit v1.2.1