Skip to content

Commit ed75abf

Browse files
committed
use py3.10
1 parent 7f4fd54 commit ed75abf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

python/private/stage2_bootstrap_template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def get_build_data(self):
8080
exc.add_note(f"exists: {os.path.exists(path)}")
8181
exc.add_note(f"lexists: {os.path.lexists(path)}")
8282
exc.add_note(f"islink: {os.path.islink(path)}")
83-
exc.add_note(f"isjunction: {os.path.isjunction(path)}")
83+
if hasattr(os.path, "isjunction"):
84+
exc.add_note(f"isjunction: {os.path.isjunction(path)}")
8485
can_read = os.access(path, os.R_OK)
8586
exc.add_note(f"readable: {can_read}")
8687
raise

tests/build_data/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ py_test(
1414
py_binary(
1515
name = "print_build_data",
1616
srcs = ["print_build_data.py"],
17-
python_version = "3.14",
17+
python_version = "3.10",
1818
deps = ["//python/runfiles"],
1919
)
2020

0 commit comments

Comments
 (0)