#NEWLINE# def remlabel( client , args ) : #NEWLINE# #INDENT# repository = get_working_repo ( client , args . repository ) #NEWLINE# try : #NEWLINE# #INDENT# label = repository . get_label ( args . label ) #NEWLINE# label . delete ( ) #NEWLINE# #UNINDENT# except GithubException as e : #NEWLINE# #INDENT# die ( ( 'Unable to delete label %s from this repository.\nError message: %s\n' % ( e . label , e . data [ 'message' ] ) ) ) #NEWLINE# #UNINDENT# print ( 'Label removed.' )