From 5a43bca639692528175ac866f7d329d8c43dbcca Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Tue, 7 Jun 2022 16:20:05 -0700 Subject: [PATCH] Minor cosmetic changes --- elftools/dwarf/compileunit.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/elftools/dwarf/compileunit.py b/elftools/dwarf/compileunit.py index e40dab4..08401be 100644 --- a/elftools/dwarf/compileunit.py +++ b/elftools/dwarf/compileunit.py @@ -155,12 +155,14 @@ class CompileUnit(object): cur_offset += child.size elif "DW_AT_sibling" in child.attributes: sibling = child.attributes["DW_AT_sibling"] - if sibling.form in ('DW_FORM_ref1', 'DW_FORM_ref2', 'DW_FORM_ref4', 'DW_FORM_ref8', 'DW_FORM_ref'): + if sibling.form in ('DW_FORM_ref1', 'DW_FORM_ref2', + 'DW_FORM_ref4', 'DW_FORM_ref8', + 'DW_FORM_ref'): cur_offset = sibling.value + self.cu_offset elif sibling.form == 'DW_FORM_ref_addr': cur_offset = sibling.value else: - raise NotImplementedError('Sibling in form %s' % sibling.form) + raise NotImplementedError('sibling in form %s' % sibling.form) else: # If no DW_AT_sibling attribute is provided by the producer # then the whole child subtree must be parsed to find its next -- 2.30.2