#NEWLINE# def test1( ) : #NEWLINE# #INDENT# global MY_IDC_FUNC #NEWLINE# try : #NEWLINE# #INDENT# MY_IDC_FUNC #NEWLINE# print ( 'Unregistering function' ) #NEWLINE# set_idc_func_ex ( MY_IDC_FUNC ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# MY_IDC_FUNC = 'pysum' #NEWLINE# #UNINDENT# ok = set_idc_func_ex ( MY_IDC_FUNC , my_idc_sum , ( idaapi . VT_LONG , idaapi . VT_LONG ) , 0 ) #NEWLINE# if ( not ok ) : #NEWLINE# #INDENT# del MY_IDC_FUNC