From 61c043ed01de2035f3b66cc0088a47c4511c11aa Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 14 May 2013 15:04:14 +0300 Subject: [PATCH] bitbake: bin/bitbake: Fix queue import for pyhton 2 and 3 (Bitbake rev: 782bc0e797802224f06cb6f9098a50d658c86523) Signed-off-by: Richard Purdie --- bitbake/bin/bitbake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 1f9bbc4..0ca82e5 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -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): -- 2.7.4