diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-10 14:35:55 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-01 15:28:23 +0100 |
commit | 1abaa1c6a950b327e6468192dd910549643768bb (patch) | |
tree | 6ef730a5b3bd649aaa620ff64d9ac3b57b41fb47 /lib/bb | |
parent | 249d0bc6094ec9f369a02b78d8ed634a239e5ee4 (diff) | |
download | bitbake-1abaa1c6a950b327e6468192dd910549643768bb.tar.gz |
toaster: fix imports to work for python 3
Some APIs have been moved to other modules in python 3:
getstatusoutput: moved from commands to subproces
urlopen: moved from urllib2 to urllib.request
urlparse: moved from urlparse to urllib.parse
Made the imports work for both python versions by
catching ImportError and importing APIs from different
modules.
[YOCTO #9584]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/utils.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index 138da44ef..8f75871c1 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -41,7 +41,6 @@ from subprocess import getstatusoutput from contextlib import contextmanager from ctypes import cdll - logger = logging.getLogger("BitBake.Util") python_extensions = [e for e, _, _ in imp.get_suffixes()] |