def _float_or_str(value):
<EOL>value = QUOTE_REGEX.sub('<STR_LIT>', value)<EOL>try:  <EOL><INDENT>return float(value)<EOL><DEDENT>except ValueError:  <EOL><INDENT>return value<EOL><DEDENT>
Internal method to attempt `float(value)` handling a `ValueError`