Skip to content

Commit

Permalink
newline tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
awdeorio committed Dec 13, 2024
1 parent 813772b commit 30214c9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions madoop/mapreduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ def is_executable(exe):
)
except subprocess.CalledProcessError as err:
raise MadoopError(
f"Failed executable test: {err}\n"
f"{err.stdout.decode()}" if err.stdout else ""
f"Failed executable test: {err}"
f"\n{err.stdout.decode()}" if err.stdout else ""
f"{err.stderr.decode()}" if err.stderr else ""
) from err
except OSError as err:
Expand Down Expand Up @@ -212,8 +212,8 @@ def map_single_chunk(exe, input_path, output_path, chunk):
raise MadoopError(
f"Command returned non-zero: "
f"{exe} < {input_path} > {output_path}\n"
f"{err}\n"
f"{err.stderr.decode()}" if err.stderr else ""
f"{err}"
f"\n{err.stderr.decode()}" if err.stderr else ""
) from err
except OSError as err:
raise MadoopError(f"Command returned non-zero: {err}") from err

Check warning on line 219 in madoop/mapreduce.py

View check run for this annotation

Codecov / codecov/patch

madoop/mapreduce.py#L218-L219

Added lines #L218 - L219 were not covered by tests
Expand Down Expand Up @@ -441,8 +441,8 @@ def reduce_single_file(exe, input_path, output_path):
raise MadoopError(
f"Command returned non-zero: "
f"{exe} < {input_path} > {output_path}\n"
f"{err}\n"
f"{err.stderr.decode()}" if err.stderr else ""
f"{err}"
f"\n{err.stderr.decode()}" if err.stderr else ""
) from err
except OSError as err:
raise MadoopError(f"Command returned non-zero: {err}") from err

Check warning on line 448 in madoop/mapreduce.py

View check run for this annotation

Codecov / codecov/patch

madoop/mapreduce.py#L447-L448

Added lines #L447 - L448 were not covered by tests
Expand Down

0 comments on commit 30214c9

Please sign in to comment.