Merge pull request #90 from codingo/new-line-printing-patch

New line printing patch
This commit is contained in:
Sajeeb Lohani
2020-01-11 23:59:27 +11:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -1 +1 @@
__version__ = '1.7.3'
__version__ = '1.7.4'

View File

@@ -49,7 +49,9 @@ class Task(object):
def _run_task(self, t=False):
if t:
s = subprocess.Popen(self.task, shell=True, stdout=subprocess.PIPE)
t.write(s.stdout.readline().decode("utf-8"))
out = s.stdout.readline().decode("utf-8")
if out != "":
t.write(out)
else:
subprocess.Popen(self.task, shell=True)