Whitespace cleanups
authorEli Bendersky <eliben@gmail.com>
Mon, 13 Jun 2022 12:49:02 +0000 (05:49 -0700)
committerEli Bendersky <eliben@gmail.com>
Mon, 13 Jun 2022 12:49:02 +0000 (05:49 -0700)
elftools/dwarf/descriptions.py
elftools/dwarf/dwarfinfo.py
elftools/dwarf/structs.py

index f51f69b02ae3b5930f312be6e2e05477b4faa82a..059c22c812375e0b536b5459951137921a9e5ae8 100644 (file)
@@ -208,7 +208,7 @@ def _describe_attr_strp(attr, die, section_offset):
 
 def _describe_attr_line_strp(attr, die, section_offset):
     return '(indirect line string, offset: 0x%x): %s' % (
-        attr.raw_value, bytes2str(attr.value))        
+        attr.raw_value, bytes2str(attr.value))
 
 def _describe_attr_string(attr, die, section_offset):
     return bytes2str(attr.value)
index 69d7b91b32888967129351989e055e39dc05d431..9642cc88cfbf4a70f3605a39cdd503f5efcdaf1a 100644 (file)
@@ -243,7 +243,7 @@ class DWARFInfo(object):
         """ Given a CU object, fetch the line program it points to from the
             .debug_line section.
             If the CU doesn't point to a line program, return None.
-            
+
             Note about directory and file names. They are returned as two collections
             in the lineprogram object's header - include_directory and file_entry.
 
@@ -491,7 +491,7 @@ class DWARFInfo(object):
             lineprog_header.file_entry = tuple(
                 translate(e.get('DW_LNCT_path'), e.get('DW_LNCT_directory_index'), e.get('DW_LNCT_timestamp'), e.get('DW_LNCT_size'))
                 for e in lineprog_header.file_names)
-        
+
         # Calculate the offset to the next line program (see DWARF 6.2.4)
         end_offset = (  debug_line_offset + lineprog_header['unit_length'] +
                         structs.initial_length_field_size())
index 46cd81777d15c19951246bdc674c3dd6d9a9dae9..fb9b0b7d4fa6814309af437f4bf771b8e7d261e1 100644 (file)
@@ -305,9 +305,9 @@ class DWARFStructs(object):
                     parser = Struct('formatted_entry', *fields)
                     context[self.format_field + "_parser"] = parser
                 return parser._parse(stream, context)
+
         ver5 = lambda ctx: ctx.version >= 5
-        
+
         self.Dwarf_lineprog_header = Struct('Dwarf_lineprog_header',
             self.Dwarf_initial_length('unit_length'),
             self.Dwarf_uint16('version'),
@@ -353,10 +353,10 @@ class DWARFStructs(object):
                 RepeatUntilExcluding(
                     lambda obj, ctx: obj == b'',
                     CString('include_directory'))),
-            If(lambda ctx: ctx.version < 5, 
+            If(lambda ctx: ctx.version < 5,
                 RepeatUntilExcluding(
                     lambda obj, ctx: len(obj.name) == 0,
-                    self.Dwarf_lineprog_file_entry)) # array name is file_entry 
+                    self.Dwarf_lineprog_file_entry)) # array name is file_entry
         )
 
     def _create_callframe_entry_headers(self):