Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccc3c3d

Browse files
committed
minor fix to distinguish stdout from stderr
1 parent ef40779 commit ccc3c3d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/core/subprocessng.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ def recv_some(p, t=.1, e=1, tr=5, stderr=0):
178178
x = time.time()+t
179179
y = []
180180
r = ''
181-
pr = p.recv
182181
if stderr:
183182
pr = p.recv_err
183+
else:
184+
pr = p.recv
184185
while time.time() < x or r:
185186
r = pr()
186187
if r is None:

0 commit comments

Comments
 (0)