diff options
Diffstat (limited to 'csci4131')
-rw-r--r-- | csci4131/hw4/strap012/strap012.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csci4131/hw4/strap012/strap012.py b/csci4131/hw4/strap012/strap012.py index d6d6385..905fd7b 100644 --- a/csci4131/hw4/strap012/strap012.py +++ b/csci4131/hw4/strap012/strap012.py @@ -36,7 +36,7 @@ def getContents(type, file): def client_recv(client_sock, client_addr): print('talking to {}'.format(client_addr)) data = client_sock.recv(BUFSIZE) - data = data.decode('utf-8').replace("\r", "") + data = data.decode('utf-8').strip("\r") data = data.split("\n") request = data[0].split(" ") want = getContents(request[0], request[1][1:]) |