Skip to content

Commit

Permalink
Remove EOL from JSON outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoesters committed Jul 2, 2024
1 parent b0f4f19 commit 5f65d34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constructor/build_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def dump_hash(info, algorithm=""):

def dump_info(info):
outpath = Path(info["_output_dir"], "info.json")
outpath.write_text(json.dumps(info, indent=2, default=repr) + "\n")
outpath.write_text(json.dumps(info, indent=2, default=repr))
return outpath.absolute()


Expand Down Expand Up @@ -121,7 +121,7 @@ def dump_licenses(info, include_text=False, text_errors=None):
license_files.append(license_file)

outpath = Path(info["_output_dir"], "licenses.json")
outpath.write_text(json.dumps(licenses, indent=2, default=repr) + "\n")
outpath.write_text(json.dumps(licenses, indent=2, default=repr))
return outpath.absolute()


Expand Down

0 comments on commit 5f65d34

Please sign in to comment.