2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 18:07:57 +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:
Radostin Stoyanov 2021-09-05 22:42:19 +01:00 committed by Andrei Vagin
parent c1eab7d06a
commit 3a689ed9a6

View File

@ -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: