diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-08 13:42:11 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-15 09:10:46 +0000 |
commit | f2fa6b3305a1a8a521aed73fa80f1abab3c3d529 (patch) | |
tree | 7f272f7261129c2761ca07baaebf90510773a2a2 /meta/classes/buildstats.bbclass | |
parent | 98453bee39203bd3ac254c8e96d450035008783f (diff) | |
download | poky-f2fa6b3305a1a8a521aed73fa80f1abab3c3d529.tar.gz |
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
(From OE-Core rev: c3cb6bc21f3f84e2ed103b6438516ab85222faa9)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildstats.bbclass')
-rw-r--r-- | meta/classes/buildstats.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index 960653c704..2590c60c63 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass | |||
@@ -100,7 +100,7 @@ def write_task_data(status, logfile, e, d): | |||
100 | f.write("rusage %s: %s\n" % (i, getattr(resources, i))) | 100 | f.write("rusage %s: %s\n" % (i, getattr(resources, i))) |
101 | for i in rusages: | 101 | for i in rusages: |
102 | f.write("Child rusage %s: %s\n" % (i, getattr(childres, i))) | 102 | f.write("Child rusage %s: %s\n" % (i, getattr(childres, i))) |
103 | if status is "passed": | 103 | if status == "passed": |
104 | f.write("Status: PASSED \n") | 104 | f.write("Status: PASSED \n") |
105 | else: | 105 | else: |
106 | f.write("Status: FAILED \n") | 106 | f.write("Status: FAILED \n") |