From f4b382754603d3f1caa13824bcc8d06b568bbc59 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 7 May 2013 13:55:56 +0100 Subject: 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 --- meta/classes/systemd.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/classes/systemd.bbclass') 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)): -- cgit v1.2.3