Skip to content

Commit 2f7c473

Browse files
committed
removed conversion to string
1 parent aaef06b commit 2f7c473

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: file_transfer/receive_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
print("Receiving data...")
1414
while True:
1515
data = sock.recv(1024)
16-
print(f"data={str(data)}")
16+
print(f"data={data}")
1717
if not data:
1818
break
1919
out_file.write(data) # Write data to a file

Diff for: file_transfer/send_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def send_file(filename: str = "mytext.txt", testing: bool = False) -> None:
1313
conn, addr = sock.accept() # Establish connection with client.
1414
print(f"Got connection from {addr}")
1515
data = conn.recv(1024)
16-
print(f"Server received {str(data)}")
16+
print(f"Server received {data}")
1717

1818
with open(filename, "rb") as in_file:
1919
data = in_file.read(1024)

0 commit comments

Comments
 (0)