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/systemd.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/systemd.bbclass')
-rw-r--r-- | meta/classes/systemd.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index 8084251f13..86d9a9a835 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass @@ -146,8 +146,8 @@ python systemd_populate_packages() { if path_found != '': systemd_add_files_and_parse(pkg_systemd, path_found, service, keys) else: - raise bb.build.FuncFailed, "\n\nSYSTEMD_SERVICE_%s value %s does not exist" % \ - (pkg_systemd, service) + raise bb.build.FuncFailed("SYSTEMD_SERVICE_%s value %s does not exist" % \ + (pkg_systemd, service)) # Run all modifications once when creating package if os.path.exists(d.getVar("D", True)): |