summaryrefslogtreecommitdiff
path: root/numpy/f2py/cb_rules.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-03-06 19:39:09 +0000
committerPauli Virtanen <pav@iki.fi>2010-03-06 19:39:09 +0000
commit8ed34403475e7e48232dfe3980b70eb057a2e2eb (patch)
treeabe6c3cb1a96d01b31bd2d4b452fc9ec736c03de /numpy/f2py/cb_rules.py
parent9cccbf38bec50e3a3fd55c8884a70f302b34f66b (diff)
downloadnumpy-8ed34403475e7e48232dfe3980b70eb057a2e2eb.tar.gz
3K: f2py: make f2py run far enough to produce output files (they don't compile yet, though, as the C code is not Py3 compatible)
Diffstat (limited to 'numpy/f2py/cb_rules.py')
-rw-r--r--numpy/f2py/cb_rules.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/cb_rules.py b/numpy/f2py/cb_rules.py
index 6e5502137..99742cb46 100644
--- a/numpy/f2py/cb_rules.py
+++ b/numpy/f2py/cb_rules.py
@@ -515,7 +515,7 @@ def buildcallback(rout,um):
ar=applyrules(cb_routine_rules,rd)
cfuncs.callbacks[rd['name']]=ar['body']
- if type(ar['need'])==types.StringType:
+ if type(ar['need'])==str:
ar['need']=[ar['need']]
if 'need' in rd: