Update minimum python to 3.11 from 3.10

3.10 is failing in CI and I cant be arsed to figure out why. It's anyway
a few months from EOL
This commit is contained in:
Kovid Goyal
2026-04-19 21:41:58 +05:30
parent 08c3ab106d
commit 04fcac72ec
13 changed files with 22 additions and 14 deletions

View File

@@ -236,7 +236,7 @@ def geninclude(path: str) -> list[str]:
if path.endswith('.py'):
return pygeninclude(path)
import subprocess
cp = subprocess.run([path], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
cp = subprocess.run([path], capture_output=True, text=True)
if cp.returncode != 0:
raise GenincludeError(f'Running the geninclude program: {path} failed with exit code: {cp.returncode} and STDERR:\n{cp.stderr}')
return cp.stdout.splitlines()