From: Leonardo Sandoval <[email protected]> As explained in [1], the module function imp.reload has been deprecated for importlib.reload, so use the latter instead.
[1] https://docs.python.org/3/library/imp.html#imp.reload Signed-off-by: Leonardo Sandoval <[email protected]> --- scripts/oe-selftest | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/oe-selftest b/scripts/oe-selftest index 52366b1c8de..bbc161e649b 100755 --- a/scripts/oe-selftest +++ b/scripts/oe-selftest @@ -35,7 +35,7 @@ import time as t import re import fnmatch import collections -import imp +import importlib sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/lib') import scriptpath @@ -497,7 +497,7 @@ def main(): bbpath = get_bb_var('BBPATH').split(':') layer_libdirs = [p for p in (os.path.join(l, 'lib') for l in bbpath) if os.path.exists(p)] sys.path.extend(layer_libdirs) - imp.reload(oeqa.selftest) + importlib.reload(oeqa.selftest) # act like bitbake and enforce en_US.UTF-8 locale os.environ["LC_ALL"] = "en_US.UTF-8" -- 2.12.0 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
