summaryrefslogtreecommitdiff
path: root/numpy/f2py/crackfortran.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-02-07 22:14:57 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-02-07 22:14:57 +0000
commit8913a2b030b2ecbf76d19e32dd38f8e56b8ffd32 (patch)
tree157c574202ebf641058203776b26a1d0993d5172 /numpy/f2py/crackfortran.py
parentd34bdb294116f75b44e16326dc0374cfdd8de5f8 (diff)
downloadnumpy-8913a2b030b2ecbf76d19e32dd38f8e56b8ffd32.tar.gz
Fixed intent(c) statement bug when only spaces follow.
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 1c2349737..ec29ca1f1 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -863,7 +863,7 @@ def analyzeline(m,case,line):
previous_context = ('variable',last_name,groupcounter)
elif case in ['dimension','intent','optional','required','external','public','private','intrisic']:
edecl=groupcache[groupcounter]['vars']
- ll=m.group('after')
+ ll=m.group('after').strip()
i=string.find(ll,'::')
if i<0 and case=='intent':
i=string.find(markouterparen(ll),'@)@')-2