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:
Richard Purdie 2013-05-14 15:04:14 +03:00
parent 0c8173d7dc
commit bd27cca7e6
1 changed files with 4 additions and 1 deletions

View File

@ -252,7 +252,10 @@ Default BBFILES are the .bb files in the current directory.""")
server.saveConnectionDetails()
except:
while True:
import queue
try:
import queue
except ImportError:
import Queue as queue
try:
event = server.event_queue.get(block=False)
except (queue.Empty, IOError):