summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-23 19:09:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-23 19:14:19 +0000
commit6d3b5b14897a15a437df788eb10edb50107e192d (patch)
treef6dd7dd6b85eb08f402ebd00303e6325aa737ea4
parentRefreshing html-output.patch. (diff)
downloadterminaltables-6d3b5b14897a15a437df788eb10edb50107e192d.tar.xz
terminaltables-6d3b5b14897a15a437df788eb10edb50107e192d.zip
Refreshing quiet-stdout.patch.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/patches/debian/0004-quiet-stdout.patch18
1 files changed, 9 insertions, 9 deletions
diff --git a/debian/patches/debian/0004-quiet-stdout.patch b/debian/patches/debian/0004-quiet-stdout.patch
index cf36463..ec457f5 100644
--- a/debian/patches/debian/0004-quiet-stdout.patch
+++ b/debian/patches/debian/0004-quiet-stdout.patch
@@ -4,18 +4,18 @@ Description: Avoid writing bytes to stdout
rather than directly to stdout. This was causing legitimate test
failures.
-diff -Naurp terminaltables.orig/terminaltables/terminal_io.py terminaltables/terminaltables/terminal_io.py
---- terminaltables.orig/terminaltables/terminal_io.py
-+++ terminaltables/terminaltables/terminal_io.py
-@@ -94,5 +94,10 @@ def set_terminal_title(title, kernel32=N
- return kernel32.SetConsoleTitleW(title) != 0
+diff -Naurp terminaltables.orig/terminaltables3/terminal_io.py terminaltables/terminaltables3/terminal_io.py
+--- terminaltables.orig/terminaltables3/terminal_io.py
++++ terminaltables/terminaltables3/terminal_io.py
+@@ -98,5 +98,10 @@ def set_terminal_title(title: Union[str,
+ return kernel32.SetConsoleTitleW(title) != 0
# Linux/OSX.
-- sys.stdout.write(b'\033]0;' + title_bytes + b'\007')
-+ set_title = b'\033]0;' + title_bytes + b'\007'
-+ if hasattr(sys.stdout, 'buffer'):
+- sys.stdout.write(b"\033]0;" + title_bytes + b"\007")
++ set_title = b"\033]0;" + title_bytes + b"\007"
++ if hasattr(sys.stdout, "buffer"):
+ sys.stdout.buffer.write(set_title)
+ else:
-+ text = set_title.decode(sys.stdout.encoding, 'strict')
++ text = set_title.decode(sys.stdout.encoding, "strict")
+ sys.stdout.write(text)
return True