8000 BUG: fix gh-23879 for private procedures · HaoZeke/numpy@891c04e · GitHub
[go: up one dir, main page]

Skip to content

Commit 891c04e

Browse files
committed
BUG: fix numpygh-23879 for private procedures
By adding them to skipfuncs
1 parent 0e5a362 commit 891c04e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

numpy/f2py/crackfortran.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,6 +2179,12 @@ def analyzebody(block, args, tab=''):
21792179
global usermodules, skipfuncs, onlyfuncs, f90modulevars
21802180

21812181
setmesstext(block)
2182+
2183+
# Add private members to skipfuncs
2184+
# Fixes gh-23879
2185+
private_vars = {key: value for key, value in block['vars'].items() if 'attrspec' not in value or 'public' not in value['attrspec']}
2186+
skipfuncs.extend(private_vars.keys())
2187+
21822188
body = []
21832189
for b in block['body']:
21842190
b['parent_block'] = block

0 commit comments

Comments
 (0)
0