#NEWLINE# def shstr( self , shndx ) : #NEWLINE# #INDENT# strtab = self . shdrs [ self . ehdr . e_shstrndx ] #NEWLINE# offset = ( strtab . sh_offset + shndx ) #NEWLINE# end = self . data . find ( b'\x00' , offset ) #NEWLINE# if ( end < 0 ) : #NEWLINE# #INDENT# raise KeyError ( shndx ) #NEWLINE# #UNINDENT# return self . data [ offset : ( end + 1 ) ]