mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-12-09 09:02:53 +00:00
scripts: Removed clearly unused isinf condition in dat parser
This commit is contained in:
@@ -60,9 +60,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user