Fix extra new line that break from progress bar
The new line should be writed to stdout only when there is a progress bar displayed. Change-Id: If0e62cd5a3734ed67d66d285267c101b7caeea77 Closes-Bug: #1253042
This commit is contained in:
@@ -110,3 +110,10 @@ class FakeTTYStdout(StringIO.StringIO):
|
||||
self.seek(0)
|
||||
data = data[1:]
|
||||
return StringIO.StringIO.write(self, data)
|
||||
|
||||
|
||||
class FakeNoTTYStdout(FakeTTYStdout):
|
||||
"""A Fake stdout that is not a TTY device."""
|
||||
|
||||
def isatty(self):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user