#NEWLINE# def is_dictlist( data ) : #NEWLINE# #INDENT# '\n    Returns True if data is a list of one-element dicts (as found in many SLS\n    schemas), otherwise returns False\n    ' #NEWLINE# if isinstance ( data , list ) : #NEWLINE# #INDENT# for element in data : #NEWLINE# #INDENT# if isinstance ( element , dict ) : #NEWLINE# #INDENT# if ( len ( data ) != 1 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True #NEWLINE# #UNINDENT# return False