1. Lars Yencken
  2. consoleLog

Commits

Lars Yencken  committed 2011655

Fixes #1, where extra spacing occurred after progress bars were used.

  • Participants
  • Parent commits 6adec4a
  • Branches default

Comments (0)

Files changed (1)

File src/consoleLog.py

View file
  • Ignore whitespace
         oLine = u'%s%s' % (u''.join(padding), message)
         if self.trim and len(oLine) > self.trim:
             oLine = oLine[:self.trim - 3] + u'...'
-        print >> self.oStream, oLine,
+        self.oStream.write(oLine)
         if newLine:
             print >> self.oStream
-        self.oStream.flush()
+        else:
+            self.oStream.flush()
         return
 
     def finish(self, message="Done"):