Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.

Commit f98bd16

Browse files
committed
Improvements
Reverted Changes from last commit
1 parent 035aa60 commit f98bd16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def receive_commands(self) -> None:
486486
for line in iter(process.stdout.readline, ""):
487487
if line == b'':
488488
break
489-
self.send(line)
489+
self.send(line.replace(b'\n', b''))
490490
if self.receive() == b'QUIT':
491491
kill(process.pid)
492492
break

Server/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ def shell_print(data) -> None:
8282
""" Support for printing more characters """
8383
# Mostly for tree command in Windows
8484
try:
85-
print(data.decode(), end='')
85+
print(data.decode())
8686
except UnicodeDecodeError:
8787
try:
88-
print(data.decode('cp437'), end='')
88+
print(data.decode('cp437'))
8989
except UnicodeDecodeError:
90-
print(data, end='')
90+
print(data)
9191
return
9292

9393

0 commit comments

Comments
 (0)