[Python-modules-commits] [python-progressbar] 02/09: flush upon write
Sandro Tosi
morph at moszumanska.debian.org
Fri Apr 15 21:04:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository python-progressbar.
commit e9949ea61326344b9a2deb272ca4803c9f2ac6fa
Author: Sandro Tosi <morph at debian.org>
Date: Fri Apr 15 21:21:13 2016 +0100
flush upon write
---
progressbar/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/progressbar/__init__.py b/progressbar/__init__.py
index ca98e44..92d96aa 100644
--- a/progressbar/__init__.py
+++ b/progressbar/__init__.py
@@ -281,6 +281,7 @@ class ProgressBar(object):
self.seconds_elapsed = now - self.start_time
self.next_update = self.currval + self.update_interval
self.fd.write(self._format_line() + '\r')
+ self.fd.flush()
self.last_update_time = now
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-progressbar.git
More information about the Python-modules-commits
mailing list