mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
coredump: fix comparison to true
Comparison to true should be 'if cond is true:' or 'if cond:' https://www.flake8rules.com/rules/E712.html Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
This commit is contained in:
parent
c1eab7d06a
commit
3a689ed9a6
@ -653,7 +653,7 @@ class coredump_generator:
|
||||
if not found:
|
||||
continue
|
||||
|
||||
if "in_parent" in m and m["in_parent"] == True:
|
||||
if "in_parent" in m and m["in_parent"]:
|
||||
ppid = self.pstree[pid]["ppid"]
|
||||
return self._get_page(ppid, page_no)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user