Skip to content

Commit

Permalink
refactor: Use the Empty_String constants.markers in server.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkapfham committed Jul 27, 2023
1 parent 7e51d57 commit d8390d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chasten/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def handle(self):
)
# remove not-printable characters that can appear in message
enhanced_message = str(message).replace(
constants.markers.Bad_Fifteen, constants.markers.Empty
constants.markers.Bad_Fifteen, constants.markers.Empty_String
)
enhanced_message = enhanced_message.replace(
constants.markers.Bad_Zero_Zero, constants.markers.Empty
constants.markers.Bad_Zero_Zero, constants.markers.Empty_String
)
# display the message inside of the syslog's console
output.console.print(enhanced_message)
Expand Down

0 comments on commit d8390d4

Please sign in to comment.