mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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. (From OE-Core rev: f4b382754603d3f1caa13824bcc8d06b568bbc59) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user