summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2008-12-22 10:05:00 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2008-12-22 10:05:00 +0000
commitfbe2af255824ad463da6936ab86738429008aee9 (patch)
tree2bbbf05584b8f53f7c0e14f863250a08d1019aed /numpy
parent934b27413ae9bd02fe40bafcf040a6f3fe0edff8 (diff)
downloadnumpy-fbe2af255824ad463da6936ab86738429008aee9.tar.gz
Fix a bug.
Diffstat (limited to 'numpy')
-rwxr-xr-xnumpy/f2py/crackfortran.py4
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: