diff options
| -rwxr-xr-x | numpy/f2py/crackfortran.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index eb9ae03c6..971ebe320 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2433,7 +2433,9 @@ def get_parameters(vars, global_params={}): params[n] = eval(v, g_params, params) except Exception as msg: params[n] = v - outmess('get_parameters: got "%s" on %s\n' % (msg, repr(v))) + # Don't report if the parameter is numeric gh-20460 + if not real16pattern.match(v): + outmess('get_parameters: got "%s" on %s\n' % (msg, repr(v))) if isstring(vars[n]) and isinstance(params[n], int): params[n] = chr(params[n]) nl = n.lower() |
