mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.14] GH-139590: Run ruff format on pre-commit for Tools/wasm (GH-139591) (#139744)
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
a96cde9f80
commit
c5ab1b7661
9 changed files with 323 additions and 157 deletions
|
|
@ -19,6 +19,7 @@
|
|||
}});
|
||||
"""
|
||||
|
||||
|
||||
def prepare_wasm(input_file, output_file, function_name):
|
||||
# Read the compiled WASM as binary and convert to hex
|
||||
wasm_bytes = Path(input_file).read_bytes()
|
||||
|
|
@ -31,9 +32,7 @@ def prepare_wasm(input_file, output_file, function_name):
|
|||
)
|
||||
Path(output_file).write_text(js_content)
|
||||
|
||||
print(
|
||||
f"Successfully compiled {input_file} and generated {output_file}"
|
||||
)
|
||||
print(f"Successfully compiled {input_file} and generated {output_file}")
|
||||
return 0
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue