From: Yu Watanabe Date: Tue, 17 Feb 2026 11:40:55 +0000 (+0900) Subject: Revert "check-os-release.py compatible with Python < 3.8" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef6c8c79dc9a3ff91c4f3003060bd7d31d4386f9;p=thirdparty%2Fsystemd.git Revert "check-os-release.py compatible with Python < 3.8" This reverts commit ce0a056abc41168e1b45537505ca9f65bf6f5c30. --- 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)