Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 2efb158

Browse files
committed
Run black
1 parent f145580 commit 2efb158

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

boostbuild/cmd/unkown.py

+17-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ def win_exec(command: List[str]) -> dict:
1818
returns:
1919
- dict containing output of command on output key or error on error key.
2020
"""
21-
result = subprocess.run(["powershell", " ".join(command)], check=False, text=True, capture_output=True)
22-
return {"error": result.stderr.rstrip().lstrip(), "output": result.stdout.rstrip().lstrip()}
21+
result = subprocess.run(
22+
["powershell", " ".join(command)], check=False, text=True, capture_output=True
23+
)
24+
return {
25+
"error": result.stderr.rstrip().lstrip(),
26+
"output": result.stdout.rstrip().lstrip(),
27+
}
2328

2429

2530
def posix_exec(command: List[str]) -> dict:
@@ -33,5 +38,13 @@ def posix_exec(command: List[str]) -> dict:
3338
returns:
3439
- dict containing output of command on output key or error on error key.
3540
"""
36-
result = subprocess.run(["/bin/bash", "-c", " ".join(command)], check=False, text=True, capture_output=True)
37-
return {"error": result.stderr.rstrip().lstrip(), "output": result.stdout.rstrip().lstrip()}
41+
result = subprocess.run(
42+
["/bin/bash", "-c", " ".join(command)],
43+
check=False,
44+
text=True,
45+
capture_output=True,
46+
)
47+
return {
48+
"error": result.stderr.rstrip().lstrip(),
49+
"output": result.stdout.rstrip().lstrip(),
50+
}

boostbuild/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def main() -> int:
149149
print(Fore.GREEN + f"-> [{i + 1}/{total_commands}] - {clean_cmd}")
150150
cmd, *args = cmd.split(" ")
151151
output = call_command(cmd, args)
152-
152+
153153
if "error" in output:
154154
print(Fore.RED + output["error"])
155155
print(Fore.WHITE + output["output"])

0 commit comments

Comments
 (0)