diff options
author | Matti Picus <matti.picus@gmail.com> | 2021-07-09 09:06:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 09:06:05 +0300 |
commit | 1f95d7914ff23ffeb95767de79c55b4f702e6f2f (patch) | |
tree | 4c244226b594ce7235f8095e4be084eac5734af4 /numpy/f2py/crackfortran.py | |
parent | 1d7939e1d26adbedaeec98c8153ea2e37297f520 (diff) | |
parent | 6ce7835aa8ac388724739956e06bef4bd8abdac2 (diff) | |
download | numpy-1f95d7914ff23ffeb95767de79c55b4f702e6f2f.tar.gz |
Merge pull request #19102 from default-303/LGTM_unused_variables
MAINT: Removed suitable unused variables shown in LGTM
Diffstat (limited to 'numpy/f2py/crackfortran.py')
-rwxr-xr-x | numpy/f2py/crackfortran.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index 2f491ed7e..3ac9b80c8 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2564,10 +2564,8 @@ def get_parameters(vars, global_params={}): v = ''.join(tt) elif iscomplex(vars[n]): - # FIXME complex numbers may also have exponents - if v[0] == '(' and v[-1] == ')': - # FIXME, unused l looks like potential bug - l = markoutercomma(v[1:-1]).split('@,@') + outmess(f'get_parameters[TODO]: ' + f'implement evaluation of complex expression {v}') try: params[n] = eval(v, g_params, params) @@ -2998,7 +2996,7 @@ def expr2name(a, block, args=[]): def analyzeargs(block): setmesstext(block) - implicitrules, attrrules = buildimplicitrules(block) + implicitrules, _ = buildimplicitrules(block) if 'args' not in block: block['args'] = [] args = [] |