Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def add_section( self, section, addr=None, data=None ):
if isinstance( section, SparseMemoryImage.Section ):
self.sections.append( section )
else:
sec = SparseMemoryImage.Section( section, addr, data )
self.sections.append( sec )