Commit ea083346b67 for nodejs
commit ea083346b67206be22d90f69d3521ecf504dc78a
Author: Richard Lau <richard.lau@ibm.com>
Date: Sun Sep 20 15:53:48 2026 +0100
tools: update `tools/v8` for Python 3.13
The `pipes` module was removed in Python 3.13 after being deprecated in
Python 3.11.
Also remove Python 2 compatibility shim as scripts require Python 3.
Assisted-by: IBM Bob
Signed-off-by: Richard Lau <richard.lau@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/66109
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
diff --git a/tools/v8/fetch_deps.py b/tools/v8/fetch_deps.py
index 055ffb50eaf..2d72127f955 100755
--- a/tools/v8/fetch_deps.py
+++ b/tools/v8/fetch_deps.py
@@ -9,9 +9,6 @@ Use this script to fetch all dependencies for V8 to run build_gn.py.
Usage: fetch_deps.py <v8-path>
"""
-# for py2/py3 compatibility
-from __future__ import print_function
-
import os
import subprocess
import sys
diff --git a/tools/v8/node_common.py b/tools/v8/node_common.py
index f873065c1df..f9b3074e3e1 100755
--- a/tools/v8/node_common.py
+++ b/tools/v8/node_common.py
@@ -3,11 +3,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# for py2/py3 compatibility
-from __future__ import print_function
import os
-import pipes
+import shlex
import shutil
import stat
import subprocess
@@ -29,8 +27,8 @@ def EnsureDepotTools(v8_path, fetch_if_not_exist):
print("Checking out depot_tools.")
# shell=True needed on Windows to resolve git.bat.
subprocess.check_call("git clone {} {}".format(
- pipes.quote(DEPOT_TOOLS_URL),
- pipes.quote(depot_tools)), shell=True)
+ shlex.quote(DEPOT_TOOLS_URL),
+ shlex.quote(depot_tools)), shell=True)
# Using check_output to hide warning messages.
subprocess.check_output(
[sys.executable, gclient_path, "metrics", "--opt-out"],