summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/ncurses.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-12 08:30:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:24:02 +0100
commit0f2c59367a649de5f57acdccfb4f1fdba9cde730 (patch)
tree7a3558a3e08e690fbb0b5bdc4044316f9ab4bbcb /bitbake/lib/bb/ui/ncurses.py
parentef1df516512587ad415f76a9626620992d660e45 (diff)
downloadpoky-0f2c59367a649de5f57acdccfb4f1fdba9cde730.tar.gz
bitbake: bitbake: Convert to python 3
Various misc changes to convert bitbake to python3 which don't warrant separation into separate commits. (Bitbake rev: d0f904d407f57998419bd9c305ce53e5eaa36b24) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/ncurses.py')
-rw-r--r--bitbake/lib/bb/ui/ncurses.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/ncurses.py b/bitbake/lib/bb/ui/ncurses.py
index 9589a77d75..d81e4138ba 100644
--- a/bitbake/lib/bb/ui/ncurses.py
+++ b/bitbake/lib/bb/ui/ncurses.py
@@ -45,7 +45,7 @@
45""" 45"""
46 46
47 47
48from __future__ import division 48
49import logging 49import logging
50import os, sys, itertools, time, subprocess 50import os, sys, itertools, time, subprocess
51 51
@@ -55,7 +55,7 @@ except ImportError:
55 sys.exit("FATAL: The ncurses ui could not load the required curses python module.") 55 sys.exit("FATAL: The ncurses ui could not load the required curses python module.")
56 56
57import bb 57import bb
58import xmlrpclib 58import xmlrpc.client
59from bb import ui 59from bb import ui
60from bb.ui import uihelper 60from bb.ui import uihelper
61 61
@@ -252,7 +252,7 @@ class NCursesUI:
252 elif ret != True: 252 elif ret != True:
253 print("Couldn't get default commandlind! %s" % ret) 253 print("Couldn't get default commandlind! %s" % ret)
254 return 254 return
255 except xmlrpclib.Fault as x: 255 except xmlrpc.client.Fault as x:
256 print("XMLRPC Fault getting commandline:\n %s" % x) 256 print("XMLRPC Fault getting commandline:\n %s" % x)
257 return 257 return
258 258
@@ -331,7 +331,7 @@ class NCursesUI:
331 taw.setText(0, 0, "") 331 taw.setText(0, 0, "")
332 if activetasks: 332 if activetasks:
333 taw.appendText("Active Tasks:\n") 333 taw.appendText("Active Tasks:\n")
334 for task in activetasks.itervalues(): 334 for task in activetasks.values():
335 taw.appendText(task["title"] + '\n') 335 taw.appendText(task["title"] + '\n')
336 if failedtasks: 336 if failedtasks:
337 taw.appendText("Failed Tasks:\n") 337 taw.appendText("Failed Tasks:\n")