Package: python-progressbar / 2.3-4

0002-write-to-stdout-in-the-example.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From 887508a1f5cae93accc5e3c334cf786ca9a612b7 Mon Sep 17 00:00:00 2001
From: Sandro Tosi <morph@debian.org>
Date: Fri, 15 Apr 2016 21:20:13 +0100
Subject: write() to stdout in the example

---
 examples.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples.py b/examples.py
index b387c41..e07232d 100644
--- a/examples.py
+++ b/examples.py
@@ -191,4 +191,4 @@ if __name__ == '__main__':
     try:
         for example in examples: example()
     except KeyboardInterrupt:
-        sys.stdout('\nQuitting examples.\n')
+        sys.stdout.write('\nQuitting examples.\n')