From: Khem Raj Date: Sun, 8 Dec 2019 21:42:11 +0000 (-0800) Subject: buildstats: Replace 'is' with '==' in python condition check expression X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~12514 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3cb6bc21f3f84e2ed103b6438516ab85222faa9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git buildstats: Replace 'is' with '==' in python condition check expression python 3.8 has started to throw this as a warning but usage is wrong see [1], it seems to be working by accident and not design. Fixes SyntaxWarning: "is" with a literal. Did you mean "=="? [1]: https://bugs.python.org/issue34850 Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index 960653c7046..2590c60c63a 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass @@ -100,7 +100,7 @@ def write_task_data(status, logfile, e, d): f.write("rusage %s: %s\n" % (i, getattr(resources, i))) for i in rusages: f.write("Child rusage %s: %s\n" % (i, getattr(childres, i))) - if status is "passed": + if status == "passed": f.write("Status: PASSED \n") else: f.write("Status: FAILED \n")