summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-07 13:55:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 14:04:18 +0100
commitb010501cd089e649a68f683be0cf4d0aac90fbe3 (patch)
treece5c7cba76051675e4a765dd677ffed372d4e33a /meta/classes/base.bbclass
parent3c104443506cb89d72944e46096a94a80838a707 (diff)
downloadopenembedded-core-b010501cd089e649a68f683be0cf4d0aac90fbe3.tar.gz
openembedded-core-b010501cd089e649a68f683be0cf4d0aac90fbe3.tar.bz2
openembedded-core-b010501cd089e649a68f683be0cf4d0aac90fbe3.zip
clases/lib: Use modern exception syntax
Update older code to use modern exception handling syntax which is the form accepted by python 3. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 641316d1fa..196acdbb30 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -108,7 +108,7 @@ python base_do_fetch() {
try:
fetcher = bb.fetch2.Fetch(src_uri, localdata)
fetcher.download()
- except bb.fetch2.BBFetchException, e:
+ except bb.fetch2.BBFetchException as e:
raise bb.build.FuncFailed(e)
}
@@ -128,7 +128,7 @@ python base_do_unpack() {
try:
fetcher = bb.fetch2.Fetch(src_uri, localdata)
fetcher.unpack(rootdir)
- except bb.fetch2.BBFetchException, e:
+ except bb.fetch2.BBFetchException as e:
raise bb.build.FuncFailed(e)
}