summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-12 08:22:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 23:32:40 +0100
commit1c6eabfbacd566fbd164b322c391f608c007b62b (patch)
tree9f8df52ea3b45f9400a1139e1ebd803d9c23a337
parentbc8971d122a02ed823acf0758da267dccc584f98 (diff)
downloadpoky-1c6eabfbacd566fbd164b322c391f608c007b62b.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: 9d0a24654ca78c45929c63c1a160e6a69f8c7afe) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/data_smart.py3
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):
397 except bb.parse.SkipRecipe: 397 except bb.parse.SkipRecipe:
398 raise 398 raise
399 except Exception as exc: 399 except Exception as exc:
400 exc_class, exc, tb = sys.exc_info() 400 raise ExpansionError(varname, s, exc) from exc
401 raise ExpansionError, ExpansionError(varname, s, exc), tb
402 401
403 varparse.value = s 402 varparse.value = s
404 403