From 56da814de1b8cb8f56e41cd45d80f19476a9b0e3 Mon Sep 17 00:00:00 2001 From: dversoza Date: Mon, 24 Apr 2023 15:34:40 -0600 Subject: [PATCH 1/6] Break line longer than 79 characters --- Tools/wasm/wasm_assets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/wasm/wasm_assets.py b/Tools/wasm/wasm_assets.py index 9dc8bda4017e2c..1fc97fd5e70a10 100755 --- a/Tools/wasm/wasm_assets.py +++ b/Tools/wasm/wasm_assets.py @@ -6,7 +6,8 @@ - a stripped down, pyc-only stdlib zip file, e.g. {PREFIX}/lib/python311.zip - os.py as marker module {PREFIX}/lib/python3.11/os.py -- empty lib-dynload directory, to make sure it is copied into the bundle {PREFIX}/lib/python3.11/lib-dynload/.empty +- empty lib-dynload directory, to make sure it is copied into the bundle: + {PREFIX}/lib/python3.11/lib-dynload/.empty """ import argparse From 225266beb86a72aaf850a6f62201a16e26f145ef Mon Sep 17 00:00:00 2001 From: dversoza Date: Mon, 24 Apr 2023 15:35:03 -0600 Subject: [PATCH 2/6] Remove f-string without any placeholders --- Tools/wasm/wasm_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/wasm/wasm_build.py b/Tools/wasm/wasm_build.py index 493682c5b138a3..28ba061fc6535b 100755 --- a/Tools/wasm/wasm_build.py +++ b/Tools/wasm/wasm_build.py @@ -73,7 +73,7 @@ run "make clean -C '{SRCDIR}'". """ -INSTALL_NATIVE = f""" +INSTALL_NATIVE = """ Builds require a C compiler (gcc, clang), make, pkg-config, and development headers for dependencies like zlib. From e77164197e4e4e0e49d89d8e2b6b4e27ee6b8c4b Mon Sep 17 00:00:00 2001 From: dversoza Date: Mon, 24 Apr 2023 15:37:25 -0600 Subject: [PATCH 3/6] Rename unused local variable to `_` --- Tools/wasm/wasm_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/wasm/wasm_build.py b/Tools/wasm/wasm_build.py index 28ba061fc6535b..241a5d4eed5ae8 100755 --- a/Tools/wasm/wasm_build.py +++ b/Tools/wasm/wasm_build.py @@ -598,7 +598,7 @@ def run_browser(self, bind="127.0.0.1", port=8000): end = time.monotonic() + 3.0 while time.monotonic() < end and srv.returncode is None: try: - with socket.create_connection((bind, port), timeout=0.1) as s: + with socket.create_connection((bind, port), timeout=0.1) as _: pass except OSError: time.sleep(0.01) From ed7f29d36faad3419dea2efb682c5b0e877730ec Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 24 Apr 2023 21:47:39 +0000 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2023-04-24-21-47-38.gh-issue-None.WaBanq.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-None.WaBanq.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-None.WaBanq.rst b/Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-None.WaBanq.rst new file mode 100644 index 00000000000000..6f07d72fafdfc3 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-None.WaBanq.rst @@ -0,0 +1 @@ +Adds three minor linting fixes to the wasm module caught that were caught by ruff. From 940c069b06b9bd68f5143d85f2aab64436555904 Mon Sep 17 00:00:00 2001 From: dversoza Date: Mon, 24 Apr 2023 15:52:36 -0600 Subject: [PATCH 5/6] FIx NEWS filename generated by blurb_it. --- ....WaBanq.rst => 2023-04-24-21-47-38.gh-issue-103796.WaBanq.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Misc/NEWS.d/next/Core and Builtins/{2023-04-24-21-47-38.gh-issue-None.WaBanq.rst => 2023-04-24-21-47-38.gh-issue-103796.WaBanq.rst} (100%) diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-None.WaBanq.rst b/Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-103796.WaBanq.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-None.WaBanq.rst rename to Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-103796.WaBanq.rst From adc0bab5ad9b7e8fa723db53f131c8d7a1756eff Mon Sep 17 00:00:00 2001 From: dversoza Date: Mon, 24 Apr 2023 16:02:09 -0600 Subject: [PATCH 6/6] Fix NEWS filename generated by blurb_it. --- ....WaBanq.rst => 2023-04-24-21-47-38.gh-issue-103801.WaBanq.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Misc/NEWS.d/next/Core and Builtins/{2023-04-24-21-47-38.gh-issue-103796.WaBanq.rst => 2023-04-24-21-47-38.gh-issue-103801.WaBanq.rst} (100%) diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-103796.WaBanq.rst b/Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-103801.WaBanq.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-103796.WaBanq.rst rename to Misc/NEWS.d/next/Core and Builtins/2023-04-24-21-47-38.gh-issue-103801.WaBanq.rst