generic-poky/bitbake/lib/toaster/orm
Ed Bartosh 0224f75999 bitbake: 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]

(Bitbake rev: 1abaa1c6a950b327e6468192dd910549643768bb)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-02 08:24:03 +01:00
..
management bitbake: toaster: update orm models for layerindex compatibility 2014-08-29 13:56:49 +01:00
migrations bitbake: toaster: models Add cancelled state to build outcome 2016-04-06 23:10:29 +01:00
__init__.py bitbake: toaster: add toaster code to bitbake 2013-10-18 11:13:49 +01:00
models.py bitbake: toaster: fix imports to work for python 3 2016-06-02 08:24:03 +01:00
tests.py bitbake: toaster: test get_alldeps API 2015-10-12 14:38:56 +01:00