mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
pybootchartui: Fix python syntax issue
Fix: scripts/pybootchartgui/pybootchartgui/parsing.py:134: SyntaxWarning: "is" with a literal. Did you mean "=="? if pid is 0: (From OE-Core rev: 2429ae83400af67b1cff2adb406ec84b3147ed5e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit c9a6511ae618035b8efad01646e37ba28ce1e3f8) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user