mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
pybootchartgui: fix 2 SyntaxWarnings
scripts/pybootchartgui/pybootchartgui/draw.py:820: SyntaxWarning: "is not" with a literal. Did you mean "!="? if (OPTIONS.show_pid or OPTIONS.show_all) and ipid is not 0: scripts/pybootchartgui/pybootchartgui/draw.py:918: SyntaxWarning: "is not" with a literal. Did you mean "!="? if i is not 0: (From OE-Core rev: 8d996616f0ca57220d939a41ca9ba6d696ea2a4f) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
fcb754793d
commit
15c7fc3174
|
@ -813,7 +813,7 @@ def draw_processes_recursively(ctx, proc, proc_tree, y, proc_h, rect, clip) :
|
|||
cmdString = proc.cmd
|
||||
else:
|
||||
cmdString = ''
|
||||
if (OPTIONS.show_pid or OPTIONS.show_all) and ipid is not 0:
|
||||
if (OPTIONS.show_pid or OPTIONS.show_all) and ipid != 0:
|
||||
cmdString = cmdString + " [" + str(ipid // 1000) + "]"
|
||||
if OPTIONS.show_all:
|
||||
if proc.args:
|
||||
|
@ -911,7 +911,7 @@ class CumlSample:
|
|||
if self.color is None:
|
||||
i = self.next() % HSV_MAX_MOD
|
||||
h = 0.0
|
||||
if i is not 0:
|
||||
if i != 0:
|
||||
h = (1.0 * i) / HSV_MAX_MOD
|
||||
s = 0.5
|
||||
v = 1.0
|
||||
|
|
Loading…
Reference in New Issue
Block a user