Since SysCommand() wraps SysCommandWorker(), but SysCommand() doesn't use contexts, we have to flush the output manually here to avoid newlines not being before the next output.
This commit is contained in:
parent
e5c8a18752
commit
f2e7b1440a
|
|
@ -333,6 +333,10 @@ class SysCommand:
|
|||
while self.session.ended is None:
|
||||
self.session.poll()
|
||||
|
||||
if self.peak_output:
|
||||
sys.stdout.write('\n')
|
||||
sys.stdout.flush()
|
||||
|
||||
except SysCallError:
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue