File: 0003-flush-upon-write.patch

package info (click to toggle)
python-progressbar 2.3-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 188 kB
  • ctags: 222
  • sloc: python: 626; makefile: 24
file content (21 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From e9949ea61326344b9a2deb272ca4803c9f2ac6fa Mon Sep 17 00:00:00 2001
From: Sandro Tosi <morph@debian.org>
Date: Fri, 15 Apr 2016 21:21:13 +0100
Subject: 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