Skip to content

Commit

Permalink
Printinf new line only when output is sys.stdout.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-serebryakov committed Aug 18, 2023
1 parent 7dab1a4 commit 9824ac7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlcube/mlcube/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,8 @@ def inspect(
import json

json.dump(info, output_stream)
print() # json doesn't print a newline
if output_stream == sys.stdout:
print() # json doesn't print a newline
else:
import yaml

Expand Down

0 comments on commit 9824ac7

Please sign in to comment.