[yum-git] output.py

Jeremy Katz katzj at linux.duke.edu
Thu Mar 13 20:40:56 UTC 2008


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

New commits:
commit 701bb327dfda5394ad33d960d2ca7be0639cdbfa
Author: Jeremy Katz <katzj at redhat.com>
Date:   Thu Mar 13 16:35:32 2008 -0400

    Set encoding of the string to avoid tracebacks (#436361)

diff --git a/output.py b/output.py
index da2db47..a9ad0f4 100644
--- a/output.py
+++ b/output.py
@@ -336,7 +336,7 @@ class YumOutput:
 
         while True:
             try:
-                choice = raw_input(_('Is this ok [y/N]: '))
+                choice = raw_input(_('Is this ok [y/N]: ').encode("utf-8"))
             except UnicodeEncodeError:
                 raise
             except:



More information about the Yum-cvs-commits mailing list