Skip to content

Commit d3ebc46

Browse files
committed
ruff check
1 parent ddb9a3a commit d3ebc46

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Platforms/WASI/_build.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def call(command, *, context=None, quiet=False, **kwargs):
135135
if quiet:
136136
_shared.log("❌", f"Exit code {error.returncode}")
137137
separator()
138-
with open(stdout.name, "r", encoding="utf-8") as file:
138+
with open(stdout.name, encoding="utf-8") as file:
139139
lines = file.readlines()
140140
# Inefficient, but the log shouldn't be dramatically large.
141141
print("".join(lines[-10:]), end="")
@@ -175,8 +175,7 @@ def make_build_python(context, _working_dir):
175175
cmd = [
176176
binary,
177177
"-c",
178-
"import sys; "
179-
"print(f'{sys.version_info.major}.{sys.version_info.minor}')",
178+
"import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')",
180179
]
181180
version = subprocess.check_output(cmd, encoding="utf-8").strip()
182181

0 commit comments

Comments
 (0)