diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2017-02-20 15:44:53 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2017-02-20 15:44:53 +0300 |
commit | c316b64d34300685e4a3b182d60f62973591b4f9 (patch) | |
tree | 44210263fa8dc23835a1fe6b7bcaa276b3ef9564 /scripts | |
parent | fd631d317fedde55ea0435dd64b32e09ac4696a6 (diff) |
remove newline from input
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/client.py b/scripts/client.py index 841bf367..0ffbd7a3 100755 --- a/scripts/client.py +++ b/scripts/client.py @@ -9,6 +9,9 @@ print filePath with open(filePath) as f: for line in f: + #print line + line = line[:-1] + #print line ws = create_connection("ws://localhost:8080/translate") ws.send(line) result=ws.recv() |