From 1c6eabfbacd566fbd164b322c391f608c007b62b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 12 May 2016 08:22:52 +0100 Subject: bitbake: data_smart: Simplify ExpansionError exception This seemingly convoluted syntax doesn't work in python3. Instead use the chained exception handling syntax which appears to make more sense here. (Bitbake rev: 9d0a24654ca78c45929c63c1a160e6a69f8c7afe) Signed-off-by: Richard Purdie --- bitbake/lib/bb/data_smart.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 2a61386d89..25c412c1ad 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py @@ -397,8 +397,7 @@ class DataSmart(MutableMapping): except bb.parse.SkipRecipe: raise except Exception as exc: - exc_class, exc, tb = sys.exc_info() - raise ExpansionError, ExpansionError(varname, s, exc), tb + raise ExpansionError(varname, s, exc) from exc varparse.value = s -- cgit v1.2.3-54-g00ecf