Divec has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/148968

Change subject: Fix socket errors: buffer apertium stdout
......................................................................

Fix socket errors: buffer apertium stdout

Change-Id: I53bbc76df0099e092b92fee5a186a370f2dbe744
---
A apertium.py
1 file changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/cxserver 
refs/changes/68/148968/1

diff --git a/apertium.py b/apertium.py
new file mode 100644
index 0000000..dd1d092
--- /dev/null
+++ b/apertium.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+
+import sys, subprocess
+
+args = ['apertium']
+args += sys.argv[1:]
+process = subprocess.Popen(args, stdin=sys.stdin, stdout=subprocess.PIPE)
+for line in process.stdout:
+       sys.stdout.write(line)

-- 
To view, visit https://gerrit.wikimedia.org/r/148968
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I53bbc76df0099e092b92fee5a186a370f2dbe744
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/cxserver
Gerrit-Branch: master
Gerrit-Owner: Divec <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to