)]}'
{
  "commit": "c1646463870191a997f49ccc2c4143871a348498",
  "tree": "cc7dd99e093f77f4b6c4411a0402cea939f811e2",
  "parents": [
    "2b24fec7f2c6eadaaec3e01818cf6dfa6b8a85bd"
  ],
  "author": {
    "name": "Sam Clegg",
    "email": "sbc@chromium.org",
    "time": "Tue Dec 01 23:45:43 2026 -0800"
  },
  "committer": {
    "name": "Sam Clegg",
    "email": "sbc@chromium.org",
    "time": "Wed Dec 02 14:33:57 2026 -0800"
  },
  "message": "Use more modern Python features. NFC\n\n- Replace custom `remove_prefix`/`remove_suffix` helpers and manual\n  prefix slicing (including `--build\u003d` parsing) with `str.removeprefix()`\n  and `str.removesuffix()`.\n- Replace manual attribute caching in `load_releases_info` with\n  `@functools.cache`.\n- Replace the `[False]` list workaround for `has_partially_active_tools`\n  in `main()` with `nonlocal`.\n- Replace `unique_items()` with `list(dict.fromkeys(...))`.\n- Use the walrus operator (`:\u003d`) across `emsdk.py` for env/regex/lookup\n  checks.\n- Modernize `subprocess` usage across `emsdk.py`,\n  `scripts/get_emscripten_revision_info.py`, and\n  `bazel/emscripten_toolchain/link_wrapper.py` (`subprocess.run`,\n  `check_output(..., text\u003dTrue)`, `capture_output\u003dTrue`, `DEVNULL`).\n- Use `match`/`case` in `emsdk.py` for `EMSDK_OS` override, `ARCH` in\n  `build_llvm()`, `custom_is_installed_script`, and\n  `custom_install_script`.\n- Replace `try ... except Exception: pass` in `load_em_config()` with\n  `contextlib.suppress(Exception)`.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2f407445faae6a580397ed3b46b3ecd272643759",
      "old_mode": 33188,
      "old_path": "bazel/emscripten_toolchain/link_wrapper.py",
      "new_id": "8bb9a95155159e83a5ae9c34f36518300ec8bba7",
      "new_mode": 33188,
      "new_path": "bazel/emscripten_toolchain/link_wrapper.py"
    },
    {
      "type": "modify",
      "old_id": "b9417acc3f45027bc5067fe8813c86aced94c612",
      "old_mode": 33188,
      "old_path": "emsdk.py",
      "new_id": "a0cc8487fac6e42e389a5d85fa825347f15e3cf5",
      "new_mode": 33188,
      "new_path": "emsdk.py"
    },
    {
      "type": "modify",
      "old_id": "4f00d74aac9a43e2d8fe9638ecf6cdfb04416448",
      "old_mode": 33261,
      "old_path": "scripts/get_emscripten_revision_info.py",
      "new_id": "6235356aeb19c906d9d577a0379031e6d5b9080d",
      "new_mode": 33261,
      "new_path": "scripts/get_emscripten_revision_info.py"
    }
  ]
}
