Skip to content

Commit 01be52e

Browse files
gh-103801: Tools/wasm linting and formatting (#103796)
This PR makes three minor linting adjustments to the `wasm` module caught by [ruff](https://github.com/charliermarsh/ruff). <!-- gh-issue-number: gh-103801 --> * Issue: gh-103801 <!-- /gh-issue-number --> --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
1 parent d94b3a6 commit 01be52e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Adds three minor linting fixes to the wasm module caught that were caught by ruff.

Tools/wasm/wasm_assets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
77
- a stripped down, pyc-only stdlib zip file, e.g. {PREFIX}/lib/python311.zip
88
- os.py as marker module {PREFIX}/lib/python3.11/os.py
9-
- empty lib-dynload directory, to make sure it is copied into the bundle {PREFIX}/lib/python3.11/lib-dynload/.empty
9+
- empty lib-dynload directory, to make sure it is copied into the bundle:
10+
{PREFIX}/lib/python3.11/lib-dynload/.empty
1011
"""
1112

1213
import argparse

Tools/wasm/wasm_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
run "make clean -C '{SRCDIR}'".
7474
"""
7575

76-
INSTALL_NATIVE = f"""
76+
INSTALL_NATIVE = """
7777
Builds require a C compiler (gcc, clang), make, pkg-config, and development
7878
headers for dependencies like zlib.
7979
@@ -598,7 +598,7 @@ def run_browser(self, bind="127.0.0.1", port=8000):
598598
end = time.monotonic() + 3.0
599599
while time.monotonic() < end and srv.returncode is None:
600600
try:
601-
with socket.create_connection((bind, port), timeout=0.1) as s:
601+
with socket.create_connection((bind, port), timeout=0.1) as _:
602602
pass
603603
except OSError:
604604
time.sleep(0.01)

0 commit comments

Comments
 (0)