diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-12 08:22:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:02 +0100 |
commit | a15e538d5009dfcb20a16a861c2aacd134e38593 (patch) | |
tree | 7adfcd0d5e6c72bf80386b647ebbbdfcdaad4984 /bitbake/lib/bb/data_smart.py | |
parent | 0f2c59367a649de5f57acdccfb4f1fdba9cde730 (diff) | |
download | openembedded-core-contrib-a15e538d5009dfcb20a16a861c2aacd134e38593.tar.gz |
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: b19a4c5166303b1fa680582adf63e6a5564bfb4c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 3 |
1 files changed, 1 insertions, 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 |