diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-21 12:29:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-21 22:26:33 +0100 |
commit | 3ddde5f32afe9225994df607f6b8dfcc58f6bdc7 (patch) | |
tree | 852bf239ca9347f8c78b3f1ccc7433f8ba36517d /meta/classes | |
parent | 01d07f328fb2644169eda5dbffaf2b6117696959 (diff) | |
download | poky-3ddde5f32afe9225994df607f6b8dfcc58f6bdc7.tar.gz |
meta: Update to modern exception syntax
Update older exception syntax to modern one required by python 3.
Compatible with python 2.7.
(From OE-Core rev: d13f0ac614f1d1e2ef2c8ddc71cbfcf76a8dc3f2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/utility-tasks.bbclass | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index c3c2669939..4be0a7e487 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -661,7 +661,7 @@ python do_cleanall() { | |||
661 | try: | 661 | try: |
662 | fetcher = bb.fetch2.Fetch(src_uri, d) | 662 | fetcher = bb.fetch2.Fetch(src_uri, d) |
663 | fetcher.clean() | 663 | fetcher.clean() |
664 | except bb.fetch2.BBFetchException, e: | 664 | except bb.fetch2.BBFetchException as e: |
665 | raise bb.build.FuncFailed(e) | 665 | raise bb.build.FuncFailed(e) |
666 | } | 666 | } |
667 | do_cleanall[nostamp] = "1" | 667 | do_cleanall[nostamp] = "1" |
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass index 5bcfd0b72c..7bc584abb9 100644 --- a/meta/classes/utility-tasks.bbclass +++ b/meta/classes/utility-tasks.bbclass | |||
@@ -46,7 +46,7 @@ python do_checkuri() { | |||
46 | try: | 46 | try: |
47 | fetcher = bb.fetch2.Fetch(src_uri, d) | 47 | fetcher = bb.fetch2.Fetch(src_uri, d) |
48 | fetcher.checkstatus() | 48 | fetcher.checkstatus() |
49 | except bb.fetch2.BBFetchException, e: | 49 | except bb.fetch2.BBFetchException as e: |
50 | raise bb.build.FuncFailed(e) | 50 | raise bb.build.FuncFailed(e) |
51 | } | 51 | } |
52 | 52 | ||