diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-07 13:55:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 14:04:18 +0100 |
commit | f4b382754603d3f1caa13824bcc8d06b568bbc59 (patch) | |
tree | e44c1a10d5863dd96522d3642419413523c2ec90 /meta/classes/update-rc.d.bbclass | |
parent | ec74285bd2108f12f33fc8ac0dc1d124ab48be21 (diff) | |
download | openembedded-core-f4b382754603d3f1caa13824bcc8d06b568bbc59.tar.gz openembedded-core-f4b382754603d3f1caa13824bcc8d06b568bbc59.tar.bz2 openembedded-core-f4b382754603d3f1caa13824bcc8d06b568bbc59.zip |
classes: Use modern exception raising syntax
Modern expection rasing syntax is function call format, convert to this
to keep python 3 happy and model correct coding style in the core.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r-- | meta/classes/update-rc.d.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass index d8cc34234e..55885698ae 100644 --- a/meta/classes/update-rc.d.bbclass +++ b/meta/classes/update-rc.d.bbclass @@ -44,9 +44,9 @@ fi def update_rc_after_parse(d): if d.getVar('INITSCRIPT_PACKAGES') == None: if d.getVar('INITSCRIPT_NAME') == None: - raise bb.build.FuncFailed, "%s inherits update-rc.d but doesn't set INITSCRIPT_NAME" % d.getVar('FILE') + raise bb.build.FuncFailed("%s inherits update-rc.d but doesn't set INITSCRIPT_NAME" % d.getVar('FILE')) if d.getVar('INITSCRIPT_PARAMS') == None: - raise bb.build.FuncFailed, "%s inherits update-rc.d but doesn't set INITSCRIPT_PARAMS" % d.getVar('FILE') + raise bb.build.FuncFailed("%s inherits update-rc.d but doesn't set INITSCRIPT_PARAMS" % d.getVar('FILE')) python __anonymous() { update_rc_after_parse(d) |