diff options
| author | default-303 <ajayds2001@gmail.com> | 2021-05-26 11:36:42 +0530 |
|---|---|---|
| committer | default-303 <ajayds2001@gmail.com> | 2021-05-26 11:36:42 +0530 |
| commit | 3e2c20bcfba5a8e188c91cca3b92e9c4259e8609 (patch) | |
| tree | 42e90d8537fa1af28064f6e04b19478001271d26 /numpy | |
| parent | 115ed1d8d5432ff4307d1e07819fec33bb72755c (diff) | |
| download | numpy-3e2c20bcfba5a8e188c91cca3b92e9c4259e8609.tar.gz | |
MAINT: Restored crackfortran.py after review for unused variables listed in LGTM
Diffstat (limited to 'numpy')
| -rwxr-xr-x | numpy/f2py/crackfortran.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index eb9ce3174..984bd642b 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -1127,6 +1127,7 @@ def analyzeline(m, case, line): (m.group('this'), ll[:i])) ll = ll + ','.join(groupcache[groupcounter]['args']) if i < 0: + i = 0 pl = '' else: pl = ll[:i].strip() @@ -2552,7 +2553,8 @@ def get_parameters(vars, global_params={}): elif iscomplex(vars[n]): # FIXME complex numbers may also have exponents if v[0] == '(' and v[-1] == ')': - pass + # FIXME, unused l looks like potential bug + l = markoutercomma(v[1:-1]).split('@,@') try: params[n] = eval(v, g_params, params) @@ -2983,6 +2985,7 @@ def expr2name(a, block, args=[]): def analyzeargs(block): setmesstext(block) + implicitrules, attrrules = buildimplicitrules(block) if 'args' not in block: block['args'] = [] args = [] |
