summaryrefslogtreecommitdiff
path: root/numpy/f2py/lib/extgen/py_support.py
diff options
context:
space:
mode:
authorJarrod Millman <millman@berkeley.edu>2007-11-28 05:12:37 +0000
committerJarrod Millman <millman@berkeley.edu>2007-11-28 05:12:37 +0000
commit6c00b1141fdfa7d168a9b82e6ab493c77f7c1621 (patch)
tree0e9b0714a7d0a5e83ca3d321b4d9aca588347f4a /numpy/f2py/lib/extgen/py_support.py
parent3fe715c0d0deb78ace46c3dbaf3165e8c4283e3c (diff)
downloadnumpy-6c00b1141fdfa7d168a9b82e6ab493c77f7c1621.tar.gz
use 'in' keyword to test dictionary membership
Diffstat (limited to 'numpy/f2py/lib/extgen/py_support.py')
-rw-r--r--numpy/f2py/lib/extgen/py_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/lib/extgen/py_support.py b/numpy/f2py/lib/extgen/py_support.py
index 2f69853b6..9f0057133 100644
--- a/numpy/f2py/lib/extgen/py_support.py
+++ b/numpy/f2py/lib/extgen/py_support.py
@@ -507,7 +507,7 @@ PyObject*
while dep_map:
dep_map_copy = dep_map.copy()
for name, deps in dep_map.items():
- d = [n for n in deps if dep_map.has_key(n)]
+ d = [n for n in deps if n in dep_map]
if not d:
sorted_arguments.append(comp_map[name])
del dep_map[name]