Skip to content

Commit e9f5864

Browse files
committed
fixup! [3.13] pythongh-139590: Stricter ruff rules for Tools/wasm (pythonGH-139752) (cherry picked from commit 678e0b8)
1 parent 4fbf146 commit e9f5864

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Tools/wasm/wasi.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@
1616
import sysconfig
1717
import tempfile
1818

19-
2019
CHECKOUT = pathlib.Path(__file__).parent.parent.parent
2120

2221
CROSS_BUILD_DIR = CHECKOUT / "cross-build"
2322
BUILD_DIR = CROSS_BUILD_DIR / "build"
2423

2524
LOCAL_SETUP = CHECKOUT / "Modules" / "Setup.local"
26-
LOCAL_SETUP_MARKER = "# Generated by Tools/wasm/wasi.py\n".encode("utf-8")
25+
LOCAL_SETUP_MARKER = b"# Generated by Tools/wasm/wasi.py\n"
2726

2827
WASMTIME_VAR_NAME = "WASMTIME"
2928
WASMTIME_HOST_RUNNER_VAR = f"{{{WASMTIME_VAR_NAME}}}"
@@ -84,7 +83,7 @@ def wrapper(context):
8483
and getattr(context, "clean", False)
8584
and working_dir.exists()
8685
):
87-
print(f"🚮 Deleting directory (--clean)...")
86+
print("🚮 Deleting directory (--clean)...")
8887
shutil.rmtree(working_dir)
8988

9089
working_dir.mkdir(parents=True, exist_ok=True)
@@ -372,7 +371,7 @@ def main():
372371
make_host = subcommands.add_parser(
373372
"make-host", help="Run `make` for the host/WASI"
374373
)
375-
clean = subcommands.add_parser(
374+
subcommands.add_parser(
376375
"clean", help="Delete files and directories created by this script"
377376
)
378377
for subcommand in (

0 commit comments

Comments
 (0)