diff options
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/ncurses.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/uievent.py | 6 |
3 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 87e873d644..a3507afb7c 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -144,7 +144,7 @@ class TerminalFilter(object): | |||
144 | pass | 144 | pass |
145 | if not cr: | 145 | if not cr: |
146 | try: | 146 | try: |
147 | cr = (env['LINES'], env['COLUMNS']) | 147 | cr = (os.environ['LINES'], os.environ['COLUMNS']) |
148 | except: | 148 | except: |
149 | cr = (25, 80) | 149 | cr = (25, 80) |
150 | return cr | 150 | return cr |
diff --git a/bitbake/lib/bb/ui/ncurses.py b/bitbake/lib/bb/ui/ncurses.py index da4fbeabb6..cf1c876a51 100644 --- a/bitbake/lib/bb/ui/ncurses.py +++ b/bitbake/lib/bb/ui/ncurses.py | |||
@@ -48,6 +48,8 @@ import bb | |||
48 | import xmlrpc.client | 48 | import xmlrpc.client |
49 | from bb.ui import uihelper | 49 | from bb.ui import uihelper |
50 | 50 | ||
51 | logger = logging.getLogger(__name__) | ||
52 | |||
51 | parsespin = itertools.cycle( r'|/-\\' ) | 53 | parsespin = itertools.cycle( r'|/-\\' ) |
52 | 54 | ||
53 | X = 0 | 55 | X = 0 |
diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py index 13d0d4a04c..8607d0523b 100644 --- a/bitbake/lib/bb/ui/uievent.py +++ b/bitbake/lib/bb/ui/uievent.py | |||
@@ -11,9 +11,13 @@ server and queue them for the UI to process. This process must be used to avoid | |||
11 | client/server deadlocks. | 11 | client/server deadlocks. |
12 | """ | 12 | """ |
13 | 13 | ||
14 | import socket, threading, pickle, collections | 14 | import collections, logging, pickle, socket, threading |
15 | from xmlrpc.server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler | 15 | from xmlrpc.server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler |
16 | 16 | ||
17 | import bb | ||
18 | |||
19 | logger = logging.getLogger(__name__) | ||
20 | |||
17 | class BBUIEventQueue: | 21 | class BBUIEventQueue: |
18 | def __init__(self, BBServer, clientinfo=("localhost, 0")): | 22 | def __init__(self, BBServer, clientinfo=("localhost, 0")): |
19 | 23 | ||