diff options
author | Bob Eldering <eldering@jive.eu> | 2017-06-12 15:37:07 +0200 |
---|---|---|
committer | Bob Eldering <eldering@jive.eu> | 2017-06-12 15:50:37 +0200 |
commit | dc063adb3d515971e492ffdd163bb07a9529b54a (patch) | |
tree | 608fa477faa52d875742c50d38ab3e22d4cec834 /numpy/f2py | |
parent | 7a8500868ec9efa1c1e452fab49e363c098c59dc (diff) | |
download | numpy-dc063adb3d515971e492ffdd163bb07a9529b54a.tar.gz |
BUG: fix missing keyword rename for common block to numpy.f2py
A missing call to rmbadname1 in analyzecommon caused a look up of
common block variables with a name in the badnames list to fail
and the fall back of defaultimplicitrules to be used.
See ticket 9228.
Diffstat (limited to 'numpy/f2py')
-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 0f05375c7..0f5e6e023 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2013,7 +2013,7 @@ def analyzecommon(block): if m.group('dims'): dims = [x.strip() for x in markoutercomma(m.group('dims')).split('@,@')] - n = m.group('name').strip() + n = rmbadname1(m.group('name').strip()) if n in block['vars']: if 'attrspec' in block['vars'][n]: block['vars'][n]['attrspec'].append( |