diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2008-12-22 10:05:00 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2008-12-22 10:05:00 +0000 |
commit | fbe2af255824ad463da6936ab86738429008aee9 (patch) | |
tree | 2bbbf05584b8f53f7c0e14f863250a08d1019aed /numpy/f2py | |
parent | 934b27413ae9bd02fe40bafcf040a6f3fe0edff8 (diff) | |
download | numpy-fbe2af255824ad463da6936ab86738429008aee9.tar.gz |
Fix a bug.
Diffstat (limited to 'numpy/f2py')
-rwxr-xr-x | numpy/f2py/crackfortran.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index 8e5f2882f..449db33a3 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2446,9 +2446,9 @@ def crack2fortrangen(block,tab='\n'): global skipfuncs, onlyfuncs setmesstext(block) ret='' - if type(block) is type([]): + if isinstance(block, list): for g in block: - if g['block'] in ['function','subroutine']: + if g and g['block'] in ['function','subroutine']: if g['name'] in skipfuncs: continue if onlyfuncs and g['name'] not in onlyfuncs: |