Skip to content
Snippets Groups Projects
Commit 55918843 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Inline single-used utility method.

parent 9ce287d4
No related branches found
No related tags found
No related merge requests found
......@@ -263,13 +263,6 @@ READELF_COMMANDS = (
)
def _compare_elf_data(path1, path2):
return [
Difference.from_command(x, path1, path2, ignore_returncodes={1})
for x in list(READELF_COMMANDS) + READELF_DEBUG_DUMP_COMMANDS
]
def _should_skip_section(name, type):
for x in READELF_COMMANDS:
if x.should_skip_section(name, type):
......@@ -622,4 +615,9 @@ class ElfFile(File):
FILE_TYPE_RE = re.compile(r"^ELF ")
def compare_details(self, other, source=None):
return _compare_elf_data(self.path, other.path)
return [
Difference.from_command(
x, self.path, other.path, ignore_returncodes={1}
)
for x in list(READELF_COMMANDS) + READELF_DEBUG_DUMP_COMMANDS
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment