diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2021-03-07 16:12:56 -0600 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2021-03-07 16:12:56 -0600 |
commit | fe073446c49c5579b6635c7cfa3a4cf43a35d45d (patch) | |
tree | 91dafbd7ad75bef304b0866101658d1916abd2d5 /csci4131/hw4 | |
parent | Fix the screwyness (diff) | |
download | homework-fe073446c49c5579b6635c7cfa3a4cf43a35d45d.tar homework-fe073446c49c5579b6635c7cfa3a4cf43a35d45d.tar.gz homework-fe073446c49c5579b6635c7cfa3a4cf43a35d45d.tar.bz2 homework-fe073446c49c5579b6635c7cfa3a4cf43a35d45d.tar.lz homework-fe073446c49c5579b6635c7cfa3a4cf43a35d45d.tar.xz homework-fe073446c49c5579b6635c7cfa3a4cf43a35d45d.tar.zst homework-fe073446c49c5579b6635c7cfa3a4cf43a35d45d.zip |
do EC by accident?
Diffstat (limited to 'csci4131/hw4')
-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:]) |