Skip to content

Commit

Permalink
proper printing
Browse files Browse the repository at this point in the history
  • Loading branch information
bobjacobsen committed Jun 24, 2024
1 parent 94a4a6a commit 8983c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_tcp_message_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def sendToSocket(data):
# "Got {}({}) but expected str"
# .format(type(data).__name__, data)
# )
print(" SR: {}".format(data.strip()))
print(" SR: {}".format(data))
s.send(data)


Expand All @@ -76,6 +76,6 @@ def printMessage(msg):
# process resulting activity
while True:
received = s.receive()
print(" RR: {}".format(received.strip()))
print(" RR: {}".format(received))
# pass to link processor
tcpLinklayer.receiveListener(received)

0 comments on commit 8983c71

Please sign in to comment.