aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-27 19:47:13 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-27 19:47:13 +0000
commitfad7810f0eb3aa03a495fa8c470b3f09212213c9 (patch)
tree2a63672b4a48da1e3567d69cf9a7dfe8f8e475cc /bin/dispatch-conf
parentMake _test_pty_eof() use non-blocking IO, required for Darwin kernel. (diff)
downloadportage-fad7810f0eb3aa03a495fa8c470b3f09212213c9.tar.gz
portage-fad7810f0eb3aa03a495fa8c470b3f09212213c9.tar.bz2
portage-fad7810f0eb3aa03a495fa8c470b3f09212213c9.zip
Fix TypeError in clear_screen() in dispatch-conf which occurs when Python 3 is used (bug #286682).
svn path=/main/trunk/; revision=14450
Diffstat (limited to 'bin/dispatch-conf')
-rwxr-xr-xbin/dispatch-conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/dispatch-conf b/bin/dispatch-conf
index bf4cac611..59fa10362 100755
--- a/bin/dispatch-conf
+++ b/bin/dispatch-conf
@@ -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: