summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-03-06 23:57:58 +0000
committerPauli Virtanen <pav@iki.fi>2010-03-06 23:57:58 +0000
commit4a26b70fd3c0dd6b4aca063a5ba504af3e91484f (patch)
tree3c59a659aea8d27af65eb0756e9cd0777593810f /numpy/f2py
parent101da729b58450021d74c9a08c5b9229c844f0b2 (diff)
downloadnumpy-4a26b70fd3c0dd6b4aca063a5ba504af3e91484f.tar.gz
3K: f2py: address a semantic difference between Py2 and Py3
Diffstat (limited to 'numpy/f2py')
-rw-r--r--numpy/f2py/cfuncs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py
index 2d33c90b5..e75c6e9f6 100644
--- a/numpy/f2py/cfuncs.py
+++ b/numpy/f2py/cfuncs.py
@@ -1154,7 +1154,8 @@ def get_needs():
else:
out.append(outneeds[n][0])
del outneeds[n][0]
- if saveout and (0 not in map(lambda x,y:x==y,saveout,outneeds[n])):
+ if saveout and (0 not in map(lambda x,y:x==y,saveout,outneeds[n])) \
+ and outneeds[n] != []:
print n,saveout
errmess('get_needs: no progress in sorting needs, probably circular dependence, skipping.\n')
out=out+saveout