#NEWLINE# def __getitem__( self , k ) : #NEWLINE# #INDENT# v = self . _d [ k ] #NEWLINE# if constants . always_return_list : #NEWLINE# #INDENT# return v #NEWLINE# #UNINDENT# if ( isinstance ( v , list ) and ( len ( v ) == 1 ) ) : #NEWLINE# #INDENT# v = v [ 0 ] #NEWLINE# #UNINDENT# return v