scripts: Removed clearly unused isinf condition in dat parser

This commit is contained in:
Christopher Haster
2025-02-21 18:14:37 -06:00
parent dcbc195b41
commit d90a8e87c4
4 changed files with 0 additions and 13 deletions

View File

@@ -168,7 +168,6 @@ def openio(path, mode='r', buffering=-1):
else:
return open(path, mode, buffering)
# parse different data representations
def dat(x):
# allow the first part of an a/b fraction
@@ -184,9 +183,6 @@ def dat(x):
# then try as float
try:
return float(x)
# just don't allow infinity or nan
if mt.isinf(x) or mt.isnan(x):
raise ValueError("invalid dat %r" % x)
except ValueError:
pass