Skip to content

Commit

Permalink
BUG: fix f2py bug in generating interfaces for assumed shape support …
Browse files Browse the repository at this point in the history
…as an addition to 4d43ec5.

(backport of 7134a93)
  • Loading branch information
pearu authored and rgommers committed Mar 31, 2011
1 parent aec64ee commit a172fd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/f2py/crackfortran.py
Expand Up @@ -1248,6 +1248,8 @@ def updatevars(typespec,selector,attrspec,entitydecl):
l = []
c = re.compile(r'(?P<start>[a-zA-Z]+)')
for a in attrspec:
if not a:
continue
m = c.match(a)
if m:
s = m.group('start').lower()
Expand Down Expand Up @@ -2020,7 +2022,6 @@ def get_parameters(vars, global_params={}):
if iscomplex(vars[n]):
if v[0]=='(' and v[-1]==')':
l = markoutercomma(v[1:-1]).split('@,@')
print n,params
try:
params[n] = eval(v,g_params,params)
except Exception,msg:
Expand Down

0 comments on commit a172fd6

Please sign in to comment.