Skip to content

Commit bf85f98

Browse files
rst0gitadrianreber
authored andcommitted
coredump: lint fix visually indented line
Continuation line over-indented for visual indent https://www.flake8rules.com/rules/E127.html Visually indented line with same indent as next logical line https://www.flake8rules.com/rules/E129.html Signed-off-by: Radostin Stoyanov <[email protected]>
1 parent 718d003 commit bf85f98

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: coredump/criu_coredump/coredump.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -781,19 +781,19 @@ def _get_vma_dump_size(self, vma):
781781
"""
782782
Calculate amount of vma to put into core dump.
783783
"""
784-
if vma["status"] & status["VMA_AREA_VVAR"] or \
785-
vma["status"] & status["VMA_AREA_VSYSCALL"] or \
786-
vma["status"] & status["VMA_AREA_VDSO"]:
784+
if (vma["status"] & status["VMA_AREA_VVAR"] or
785+
vma["status"] & status["VMA_AREA_VSYSCALL"] or
786+
vma["status"] & status["VMA_AREA_VDSO"]):
787787
size = vma["end"] - vma["start"]
788788
elif vma["prot"] == 0:
789789
size = 0
790-
elif vma["prot"] & prot["PROT_READ"] and \
791-
vma["prot"] & prot["PROT_EXEC"]:
790+
elif (vma["prot"] & prot["PROT_READ"] and
791+
vma["prot"] & prot["PROT_EXEC"]):
792792
size = PAGESIZE
793-
elif vma["status"] & status["VMA_ANON_SHARED"] or \
794-
vma["status"] & status["VMA_FILE_SHARED"] or \
795-
vma["status"] & status["VMA_ANON_PRIVATE"] or \
796-
vma["status"] & status["VMA_FILE_PRIVATE"]:
793+
elif (vma["status"] & status["VMA_ANON_SHARED"] or
794+
vma["status"] & status["VMA_FILE_SHARED"] or
795+
vma["status"] & status["VMA_ANON_PRIVATE"] or
796+
vma["status"] & status["VMA_FILE_PRIVATE"]):
797797
size = vma["end"] - vma["start"]
798798
else:
799799
size = 0

0 commit comments

Comments
 (0)