#NEWLINE# def take_action( self , parsed_args ) : #NEWLINE# #INDENT# self . _validate_parsed_args ( parsed_args ) #NEWLINE# f = self . _get_format_function ( ) #NEWLINE# ret = self . _get_resources ( parsed_args ) #NEWLINE# if ( not isinstance ( ret , list ) ) : #NEWLINE# #INDENT# ret = [ ret ] #NEWLINE# #UNINDENT# data = [ f ( r ) [ 1 ] for r in ret ] #NEWLINE# if data : #NEWLINE# #INDENT# return ( f ( ) [ 0 ] , data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return f ( )