Skip to content

Commit

Permalink
fix: Reduce amount of unnecessary whitespace in Singer output (meltan…
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 26, 2024
1 parent 187a347 commit e35d2b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion singer_sdk/_singerlib/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,12 @@ def format_message(message: Message) -> str:
Returns:
The formatted message.
"""
return json.dumps(message.to_dict(), use_decimal=True, default=_default_encoding)
return json.dumps(
message.to_dict(),
use_decimal=True,
default=_default_encoding,
separators=(",", ":"),
)


def write_message(message: Message) -> None:
Expand Down

0 comments on commit e35d2b0

Please sign in to comment.