#NEWLINE# def check_command_key_format( key_file , accepted_file_format = [ ] ) : #NEWLINE# #INDENT# if any ( ( key_file . endswith ( i ) for i in key_file ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False