bitbake: bin/bitbake: Fix queue import for pyhton 2 and 3
(Bitbake rev: 782bc0e797802224f06cb6f9098a50d658c86523) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0c8173d7dc
commit
bd27cca7e6
|
@ -252,7 +252,10 @@ Default BBFILES are the .bb files in the current directory.""")
|
||||||
server.saveConnectionDetails()
|
server.saveConnectionDetails()
|
||||||
except:
|
except:
|
||||||
while True:
|
while True:
|
||||||
import queue
|
try:
|
||||||
|
import queue
|
||||||
|
except ImportError:
|
||||||
|
import Queue as queue
|
||||||
try:
|
try:
|
||||||
event = server.event_queue.get(block=False)
|
event = server.event_queue.get(block=False)
|
||||||
except (queue.Empty, IOError):
|
except (queue.Empty, IOError):
|
||||||
|
|
Loading…
Reference in New Issue