Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r14450 - main/trunk/bin
Date: Sun, 27 Sep 2009 19:47:27
Message-Id: E1MrziM-0001JI-I6@stork.gentoo.org
1 Author: arfrever
2 Date: 2009-09-27 19:47:13 +0000 (Sun, 27 Sep 2009)
3 New Revision: 14450
4
5 Modified:
6 main/trunk/bin/dispatch-conf
7 Log:
8 Fix TypeError in clear_screen() in dispatch-conf which occurs when Python 3 is used (bug #286682).
9
10
11 Modified: main/trunk/bin/dispatch-conf
12 ===================================================================
13 --- main/trunk/bin/dispatch-conf 2009-09-27 19:45:09 UTC (rev 14449)
14 +++ main/trunk/bin/dispatch-conf 2009-09-27 19:47:13 UTC (rev 14450)
15 @@ -35,6 +35,7 @@
16
17 from portage import os
18 from portage import dispatch_conf
19 +from portage import _unicode_decode
20 from portage.process import find_binary
21
22 FIND_EXTANT_CONFIGS = "find '%s' %s -name '._cfg????_%s' ! -name '.*~' ! -iname '.*.bak' -print"
23 @@ -397,7 +398,7 @@
24 import curses
25 try:
26 curses.setupterm()
27 - sys.stdout.write(curses.tigetstr("clear"))
28 + sys.stdout.write(_unicode_decode(curses.tigetstr("clear")))
29 sys.stdout.flush()
30 return
31 except curses.error: