From ef6c8c79dc9a3ff91c4f3003060bd7d31d4386f9 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 17 Feb 2026 20:40:55 +0900 Subject: [PATCH] Revert "check-os-release.py compatible with Python < 3.8" This reverts commit ce0a056abc41168e1b45537505ca9f65bf6f5c30. --- man/check-os-release.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/man/check-os-release.py b/man/check-os-release.py index 19b193ec76a..f0a64f34966 100755 --- a/man/check-os-release.py +++ b/man/check-os-release.py @@ -17,8 +17,7 @@ def read_os_release(): line = line.rstrip() if not line or line.startswith('#'): continue - m = re.match(r'([A-Z][A-Z_0-9]+)=(.*)', line) - if m: + if m := re.match(r'([A-Z][A-Z_0-9]+)=(.*)', line): name, val = m.groups() if val and val[0] in '"\'': val = ast.literal_eval(val) -- 2.47.3