#NEWLINE# def get_enabled( service , reverse = False ) : #NEWLINE# #INDENT# options = [ 'Enabled' , 'Disabled' ] #NEWLINE# if reverse : #NEWLINE# #INDENT# options . reverse ( ) #NEWLINE# #UNINDENT# if service . host : #NEWLINE# #INDENT# return ( options [ 0 ] if ( not service . disabled ) else options [ 1 ] ) #NEWLINE# #UNINDENT# return None