Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2017-02-20 15:44:53 +0300
committerHieu Hoang <hieuhoang@gmail.com>2017-02-20 15:44:53 +0300
commitc316b64d34300685e4a3b182d60f62973591b4f9 (patch)
tree44210263fa8dc23835a1fe6b7bcaa276b3ef9564 /scripts
parentfd631d317fedde55ea0435dd64b32e09ac4696a6 (diff)
remove newline from input
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/client.py3
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()