From: Richard Purdie Date: Wed, 15 Mar 2023 14:10:34 +0000 (+0000) Subject: pybootchartui: Fix python syntax issue X-Git-Tag: yocto-4.0.9~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2429ae83400af67b1cff2adb406ec84b3147ed5e;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git pybootchartui: Fix python syntax issue Fix: scripts/pybootchartgui/pybootchartgui/parsing.py:134: SyntaxWarning: "is" with a literal. Did you mean "=="? if pid is 0: Signed-off-by: Richard Purdie (cherry picked from commit c9a6511ae618035b8efad01646e37ba28ce1e3f8) Signed-off-by: Steve Sakoman --- diff --git a/scripts/pybootchartgui/pybootchartgui/parsing.py b/scripts/pybootchartgui/pybootchartgui/parsing.py index b42dac6b888..9d6787ec5a5 100644 --- a/scripts/pybootchartgui/pybootchartgui/parsing.py +++ b/scripts/pybootchartgui/pybootchartgui/parsing.py @@ -128,7 +128,7 @@ class Trace: def compile(self, writer): def find_parent_id_for(pid): - if pid is 0: + if pid == 0: return 0 ppid = self.parent_map.get(pid) if ppid: