From bb88ab7d986df03baa0cdab1f2a842a217645aec Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 22 Sep 2026 23:52:52 +0000 Subject: [PATCH] Fix tarfile.open call in dotnet bootstrap (fileobj=) --- scripts/guibuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/guibuild.py b/scripts/guibuild.py index 85e1177..86d76a6 100755 --- a/scripts/guibuild.py +++ b/scripts/guibuild.py @@ -293,7 +293,7 @@ def fetch_dotnet() -> str: with zipfile.ZipFile(io.BytesIO(data)) as zf: zf.extractall(_DOTNET_STAGING) else: - with tarfile.open(io.BytesIO(data), "r:gz") as tf: + with tarfile.open(fileobj=io.BytesIO(data), mode="r:gz") as tf: tf.extractall(_DOTNET_STAGING) staged.chmod(staged.stat().st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)