[Reportbug-commits] [reportbug] 20/32: text ui: dont encode strings anymore

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 dc75b8c5b74109d94d46818382c51d113961a86c
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Nov 27 20:00:32 2016 -0500

    text ui: dont encode strings anymore
---
 reportbug/ui/text_ui.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/reportbug/ui/text_ui.py b/reportbug/ui/text_ui.py
index 5f8e91a..2119891 100644
--- a/reportbug/ui/text_ui.py
+++ b/reportbug/ui/text_ui.py
@@ -564,7 +564,6 @@ def handle_bts_query(package, bts, timeout, mirrors=None, http_proxy="",
                 # second item is a list of bugs report
                 for bug in entry[1]:
                     msg = "#%d  %s" % (bug.bug_num, bug.subject)
-                    msg = msg.encode(charset, 'replace')
                     print(msg)
             sys.exit(0)
 
@@ -686,7 +685,7 @@ def browse_bugs(hierarchy, count, bugs, bts, queryonly, mirrors,
 
                 while 1:
                     for line in lastpage:
-                        sys.stderr.write(line.encode(output_encoding, "replace"))
+                        sys.stderr.write(line)
                     x = select_options(pstr, options, helptext,
                                        allow_numbers=allowed)
                     if x == 'n':
@@ -905,7 +904,7 @@ def search_bugs(hierarchyfull, bts, queryonly, mirrors,
 
                 while 1:
                     for line in lastpage:
-                        sys.stderr.write(line.encode(output_encoding, "replace"))
+                        sys.stderr.write(line)
                     x = select_options(pstr, options, helptext,
                                        allow_numbers=allowed)
                     if x == 'n':

-- 
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