remove first int()/float() call
Use _search_int() and _search_float() after
the standard converter int() and float()
has failed.
@@ -427,10 +427,6 @@ def _search_int(s: str) -> int:
an exception. e.g. "42xyz" is a valid integer 42
"""
- # Not in use yet!
- try:
- return int(s)
- except ValueError:
res = re.search(INT_PATTERN, s)
if res:
s = res.group()
@@ -446,10 +442,6 @@ def _search_float(s: str) -> float:
an exception. e.g. "47.11xyz" is a valid double 47.11
"""
- # Not in use yet!
- try:
- return float(s)
- except ValueError:
res = re.search(FLOAT_PATTERN, s)
if res:
s = res.group()
