diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-15 14:10:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-01 20:23:23 +0100 |
commit | 90adc17feb71f2344bb57f1daf492d6c6ce5e044 (patch) | |
tree | 49aba7378515080151cbff9e6ab360c2a303911b /scripts | |
parent | 2ace3a0b1e2d8239c0b503ad6733bad1d46b769a (diff) | |
download | poky-90adc17feb71f2344bb57f1daf492d6c6ce5e044.tar.gz |
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: 413523515dbb064680841fffa2cfdba8b2bac6f6)
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/parsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/parsing.py b/scripts/pybootchartgui/pybootchartgui/parsing.py index b42dac6b88..9d6787ec5a 100644 --- a/scripts/pybootchartgui/pybootchartgui/parsing.py +++ b/scripts/pybootchartgui/pybootchartgui/parsing.py | |||
@@ -128,7 +128,7 @@ class Trace: | |||
128 | def compile(self, writer): | 128 | def compile(self, writer): |
129 | 129 | ||
130 | def find_parent_id_for(pid): | 130 | def find_parent_id_for(pid): |
131 | if pid is 0: | 131 | if pid == 0: |
132 | return 0 | 132 | return 0 |
133 | ppid = self.parent_map.get(pid) | 133 | ppid = self.parent_map.get(pid) |
134 | if ppid: | 134 | if ppid: |