Patchwork [bitbake-devel] Dongxiao Xu : cooker: remove command import in cooker.py

login
register
mail settings
Submitter git@git.openembedded.org
Date Jan. 6, 2012, 4:02 p.m.
Message ID <20120106160257.64E8E10337@opal>
Download mbox | patch
Permalink /patch/18661/
State Not Applicable
Headers show

Comments

git@git.openembedded.org - Jan. 6, 2012, 4:02 p.m.
Module: bitbake.git
Branch: master
Commit: 92fec2788e33d301cc63848901bc6adc764a2ecf
URL:    http://git.openembedded.org/?p=bitbake.git&a=commit;h=92fec2788e33d301cc63848901bc6adc764a2ecf

Author: Dongxiao Xu <dongxiao.xu@intel.com>
Date:   Fri Jan  6 17:02:28 2012 +0800

cooker: remove command import in cooker.py

There is no direct use of command in cooker.py, and it is using
bb.command instead. Remove command in the import list.

This fixes a problem of embedded import between command.py and
cooker.py.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

---

 lib/bb/cooker.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 1faf821..102d40f 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -34,8 +34,8 @@  from cStringIO import StringIO
 from contextlib import closing
 from functools import wraps
 from collections import defaultdict
-import bb, bb.exceptions
-from bb import utils, data, parse, event, cache, providers, taskdata, command, runqueue
+import bb, bb.exceptions, bb.command
+from bb import utils, data, parse, event, cache, providers, taskdata, runqueue
 
 logger      = logging.getLogger("BitBake")
 collectlog  = logging.getLogger("BitBake.Collection")