Fix TypeError in clear_screen() in dispatch-conf which occurs when Python 3 is used...
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Sun, 27 Sep 2009 19:47:13 +0000 (19:47 -0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Sun, 27 Sep 2009 19:47:13 +0000 (19:47 -0000)
svn path=/main/trunk/; revision=14450

bin/dispatch-conf

index bf4cac6113400851cbf8882ffdfbe4245a9c537c..59fa10362ec444617234336ae603ea336068f8af 100755 (executable)
@@ -35,6 +35,7 @@ except ImportError:
 
 from portage import os
 from portage import dispatch_conf
+from portage import _unicode_decode
 from portage.process import find_binary
 
 FIND_EXTANT_CONFIGS  = "find '%s' %s -name '._cfg????_%s' ! -name '.*~' ! -iname '.*.bak' -print"
@@ -397,7 +398,7 @@ def clear_screen():
         import curses
         try:
             curses.setupterm()
-            sys.stdout.write(curses.tigetstr("clear"))
+            sys.stdout.write(_unicode_decode(curses.tigetstr("clear")))
             sys.stdout.flush()
             return
         except curses.error: