[oe-commits] [bitbake] 11/12: data_smart: Simplify ExpansionError exception
git at git.openembedded.org
git at git.openembedded.org
Thu May 12 10:06:07 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 64537ec8eaf1bc82503095cf0ca2a9d7c8565c83
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu May 12 08:22:52 2016 +0100
data_smart: Simplify ExpansionError exception
This seemingly convoluted syntax doesn't work in python3, replace
with something simpler, not sure what the original was trying to
achieve.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/data_smart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 2a61386..50c6358 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -398,7 +398,7 @@ class DataSmart(MutableMapping):
raise
except Exception as exc:
exc_class, exc, tb = sys.exc_info()
- raise ExpansionError, ExpansionError(varname, s, exc), tb
+ raise ExpansionError(varname, s, exc)
varparse.value = s
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list