Revert "check-os-release.py compatible with Python < 3.8"

This reverts commit ce0a056abc.
This commit is contained in:
Yu Watanabe
2026-02-18 18:47:15 +09:00
parent 08719d0e78
commit ef6c8c79dc
+1 -2
View File
@@ -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)