def _expr_to_local(match): return "<%s>" % (RE_VAR.sub(_var_to_local, match.group(1)))
def _expr_to_local(match): return '<%s>' % (RE_VAR.sub(_var_to_local, match.group(1)))
def _expr_to_english(match): """Translates variables within an expression to english.""" return "<%s>" % (RE_VAR.sub(_var_to_english, match.group(1)))
def _expr_to_english(match): """Translates variables within an expression to english.""" return '<%s>' % (RE_VAR.sub(_var_to_english, match.group(1)))