def variable_not_found(name, candidates, msg=None, deco_braces=True):
 if (msg is None):
  msg = ("Variable '%s' not found." % name)
 candidates = _decorate_candidates(name[0], candidates, deco_braces)
 normalizer = partial(normalize, ignore='$@%&*{}_', caseless=True, spaceless=True)
 finder = RecommendationFinder(normalizer)
 recommendations = finder.find_recommendations(name, candidates)
 msg = finder.format_recommendations(msg, recommendations)
 raise VariableError(msg)

def variable_not_found ( name , candidates , msg = None , deco_braces = True ) : if ( msg is None ) : msg = ( "Variable '%s' not found." % name ) candidates = _decorate_candidates ( name [ 0 ] , candidates , deco_braces ) normalizer = partial ( normalize , ignore = '$@%&*{}_' , caseless = True , spaceless = True ) finder = RecommendationFinder ( normalizer ) recommendations = finder . find_recommendations ( name , candidates ) msg = finder . format_recommendations ( msg , recommendations ) raise VariableError ( msg )
raise dataerror for missing variable name .