1
0
Fork 0

Rediffing Avoid-writing-bytes-to-stdout.patch.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-12 13:07:13 +01:00
parent b2ea904319
commit 2549029f07
Signed by: daniel
GPG key ID: FBB4F0E80A80222F

View file

@ -1,21 +1,13 @@
From: Carl Suster <carl@contraflo.ws> Author: Carl Suster <carl@contraflo.ws>
Date: Tue, 12 Nov 2019 14:08:30 +1100 Description: Avoid writing bytes to stdout
Subject: Avoid writing bytes to stdout In Python 3, bytes should be written to the underlying buffer object
rather than directly to stdout. This was causing legitimate test
failures.
In Python 3, bytes should be written to the underlying buffer object diff -Naurp terminaltables.orig/terminaltables/terminal_io.py terminaltables/terminaltables/terminal_io.py
rather than directly to stdout. This was causing legitimate test --- terminaltables.orig/terminaltables/terminal_io.py
failures. +++ terminaltables/terminaltables/terminal_io.py
@@ -94,5 +94,10 @@ def set_terminal_title(title, kernel32=N
Forwarded: https://github.com/Robpol86/terminaltables/pull/71
---
terminaltables/terminal_io.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/terminaltables/terminal_io.py b/terminaltables/terminal_io.py
index 8b8c10d..005da1b 100644
--- a/terminaltables/terminal_io.py
+++ b/terminaltables/terminal_io.py
@@ -94,5 +94,10 @@ def set_terminal_title(title, kernel32=None):
return kernel32.SetConsoleTitleW(title) != 0 return kernel32.SetConsoleTitleW(title) != 0
# Linux/OSX. # Linux/OSX.