#NEWLINE# def main( ) : #NEWLINE# #INDENT# print ( 'Visiting all patched bytes:' ) #NEWLINE# v = patched_bytes_visitor ( ) #NEWLINE# r = idaapi . visit_patched_bytes ( 0 , idaapi . BADADDR , v ) #NEWLINE# if ( r != 0 ) : #NEWLINE# #INDENT# print ( ( 'visit_patched_bytes() returned %d' % v ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( ( 'Patched: %d Skipped: %d' % ( v . patch , v . skip ) ) )