#NEWLINE# def remove_hook( args ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# process_hook ( github . unregister_hook , args ) #NEWLINE# sys . stdout . write ( 'Hook removed successfully\n' ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# sys . stderr . write ( 'Hook removal failed\n' ) #NEWLINE# sys . stderr . write ( ( e . message + '\n' ) ) #NEWLINE# sys . exit ( 2 )