diff options
author | Rohit Goswami <rog32@hi.is> | 2022-06-30 16:55:03 +0000 |
---|---|---|
committer | Rohit Goswami <rog32@hi.is> | 2022-06-30 16:55:03 +0000 |
commit | 235aa7d7a570139e9f15efc3be119f5a2c4d9578 (patch) | |
tree | 5794beaed2b42d2b5220a56ed60873b570469d7e /numpy/f2py/crackfortran.py | |
parent | a111b9d0736af0278895a2d618f6b18a77e6bf77 (diff) | |
download | numpy-235aa7d7a570139e9f15efc3be119f5a2c4d9578.tar.gz |
BUG: Fix KeyError in crackfortran operator support
Diffstat (limited to 'numpy/f2py/crackfortran.py')
-rwxr-xr-x | numpy/f2py/crackfortran.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index d3243c72e..27e257c48 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2191,7 +2191,7 @@ def analyzebody(block, args, tab=''): as_ = args b = postcrack(b, as_, tab=tab + '\t') if b['block'] in ['interface', 'abstract interface'] and \ - not b['body'] and not b['implementedby']: + not b['body'] and not b.get('implementedby'): if 'f2pyenhancements' not in b: continue if b['block'].replace(' ', '') == 'pythonmodule': |