summaryrefslogtreecommitdiffstats
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:06:50 +0100
commit2ac4f8b39711209ba9323fc221c1dcd185da57ea (patch)
treecbaa1e573abd13c7827a5b4a57724fd884df148b /meta/classes/base.bbclass
parent00052fe69582f238166511e733d3ba875cbe0ad2 (diff)
downloadpoky-2ac4f8b39711209ba9323fc221c1dcd185da57ea.tar.gz
clases/lib: Use modern exception syntax
Update older code to use modern exception handling syntax which is the form accepted by python 3. (From OE-Core rev: b010501cd089e649a68f683be0cf4d0aac90fbe3) 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() {
108 try: 108 try:
109 fetcher = bb.fetch2.Fetch(src_uri, localdata) 109 fetcher = bb.fetch2.Fetch(src_uri, localdata)
110 fetcher.download() 110 fetcher.download()
111 except bb.fetch2.BBFetchException, e: 111 except bb.fetch2.BBFetchException as e:
112 raise bb.build.FuncFailed(e) 112 raise bb.build.FuncFailed(e)
113} 113}
114 114
@@ -128,7 +128,7 @@ python base_do_unpack() {
128 try: 128 try:
129 fetcher = bb.fetch2.Fetch(src_uri, localdata) 129 fetcher = bb.fetch2.Fetch(src_uri, localdata)
130 fetcher.unpack(rootdir) 130 fetcher.unpack(rootdir)
131 except bb.fetch2.BBFetchException, e: 131 except bb.fetch2.BBFetchException as e:
132 raise bb.build.FuncFailed(e) 132 raise bb.build.FuncFailed(e)
133} 133}
134 134