[Reportbug-commits] [reportbug] 18/32: dont encode the message in ewrite()

Sandro Tosi morph at moszumanska.debian.org
Thu Dec 1 01:36:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository reportbug.

commit a29e2198009fad8479ad3945d1eb1845760b2824
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Nov 27 19:38:10 2016 -0500

    dont encode the message in ewrite()
---
 reportbug/ui/text_ui.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/reportbug/ui/text_ui.py b/reportbug/ui/text_ui.py
index 1e1400a..5c4dc3e 100644
--- a/reportbug/ui/text_ui.py
+++ b/reportbug/ui/text_ui.py
@@ -61,9 +61,6 @@ def ewrite(message, *args):
     if args:
         message = message % args
 
-    if isinstance(message, str):
-        message = message.encode(charset, 'replace')
-
     sys.stderr.write(message)
     sys.stderr.flush()
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list