summaryrefslogtreecommitdiff
path: root/numpy/f2py/crackfortran.py
diff options
context:
space:
mode:
authorRohit Goswami <rog32@hi.is>2022-06-30 16:55:03 +0000
committerRohit Goswami <rog32@hi.is>2022-06-30 16:55:03 +0000
commit235aa7d7a570139e9f15efc3be119f5a2c4d9578 (patch)
tree5794beaed2b42d2b5220a56ed60873b570469d7e /numpy/f2py/crackfortran.py
parenta111b9d0736af0278895a2d618f6b18a77e6bf77 (diff)
downloadnumpy-235aa7d7a570139e9f15efc3be119f5a2c4d9578.tar.gz
BUG: Fix KeyError in crackfortran operator support
Diffstat (limited to 'numpy/f2py/crackfortran.py')
-rwxr-xr-xnumpy/f2py/crackfortran.py2
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':