From 125f06dd1cc2b658e77adf2f31b349052ff12b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 22 Mar 2024 15:44:17 +0100 Subject: [PATCH] =?UTF-8?q?tools/elf2efi:=20elif=E2=86=92if=20to=20make=20?= =?UTF-8?q?pylint=20happy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/elf2efi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/elf2efi.py b/tools/elf2efi.py index 2e7ca9f6c4e..cb1a284a601 100755 --- a/tools/elf2efi.py +++ b/tools/elf2efi.py @@ -268,7 +268,7 @@ def iter_copy_sections(elf: ELFFile) -> typing.Iterator[PeSection]: if elf_seg["p_type"] == "PT_LOAD" and elf_seg["p_align"] != SECTION_ALIGNMENT: raise BadSectionError(f"ELF segment {elf_seg['p_type']} is not properly aligned" f" ({elf_seg['p_align']} != {SECTION_ALIGNMENT})") - elif elf_seg["p_type"] == "PT_GNU_RELRO": + if elf_seg["p_type"] == "PT_GNU_RELRO": relro = elf_seg for elf_s in elf.iter_sections():