From ccc3c3d1a351d57bae1650ec8e6ad24f00351086 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 10 Jan 2013 00:51:05 +0000 Subject: [PATCH] minor fix to distinguish stdout from stderr --- lib/core/subprocessng.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/subprocessng.py b/lib/core/subprocessng.py index 02db47a23..9742b8935 100644 --- a/lib/core/subprocessng.py +++ b/lib/core/subprocessng.py @@ -178,9 +178,10 @@ def recv_some(p, t=.1, e=1, tr=5, stderr=0): x = time.time()+t y = [] r = '' - pr = p.recv if stderr: pr = p.recv_err + else: + pr = p.recv while time.time() < x or r: r = pr() if r is None: