mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue