Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76eb894 commit b78b56dCopy full SHA for b78b56d
1 file changed
lib/utils/xmlrpc.py
@@ -54,14 +54,13 @@ def is_busy(self):
54
return kb.get("busyFlag")
55
56
def read_output(self):
57
- retval = []
58
- for _ in ("stdout", "stderr"):
59
- stream = getattr(sys, _)
60
- stream.seek(0)
61
- retval.append(stream.read())
62
- stream.truncate(0)
63
- if not filter(None, retval) and not self.is_busy():
+ sys.stdout.seek(0)
+ retval = sys.stdout.read()
+ sys.stdout.truncate(0)
+
+ if not retval and not self.is_busy():
64
retval = None
65
return retval
66
67
def run(self):
0 commit comments