diff options
author | Radostin Stoyanov <radostin@redhat.com> | 2021-09-06 00:42:19 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2022-04-29 03:53:52 +0300 |
commit | 3a689ed9a626e60183e52e5abc2d7cf765efe6cc (patch) | |
tree | b64d06cb59ecef506b9416c37cde2f6430e32b66 /coredump | |
parent | c1eab7d06a9bc6c480ea216c7268cd22a1a1229d (diff) |
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>
Diffstat (limited to 'coredump')
-rw-r--r-- | coredump/criu_coredump/coredump.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coredump/criu_coredump/coredump.py b/coredump/criu_coredump/coredump.py index a232132fd..41d102db7 100644 --- a/coredump/criu_coredump/coredump.py +++ b/coredump/criu_coredump/coredump.py @@ -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: |