def validate_value(tokens):
 for token in tokens:
  type_ = token.type
  if (type_ == u'{'):
   validate_block(token.content, u'property value')
  else:
   validate_any(token, u'property value')

def validate_value ( tokens ) : for token in tokens : type_ = token . type if ( type_ == u'{' ) : validate_block ( token . content , u'property value' ) else : validate_any ( token , u'property value' )
validate a property value .