summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/config.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-12-03 16:03:17 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-12-03 16:03:17 +0000
commit944bb9fb73ed888f9917e3059274af2f3fa652fb (patch)
tree985fb48a2fb624daa1a2b87176846b0e252fa531 /numpy/distutils/command/config.py
parent90e79bd64d139f7938660635cbce558c39d98053 (diff)
downloadnumpy-944bb9fb73ed888f9917e3059274af2f3fa652fb.tar.gz
remove has_key from config.
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r--numpy/distutils/command/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py
index 28cf4cf9f..c99c966ac 100644
--- a/numpy/distutils/command/config.py
+++ b/numpy/distutils/command/config.py
@@ -355,8 +355,8 @@ int main ()
body.append("int main (void) {")
if call:
for f in funcs:
- if call.has_key(f) and call[f]:
- if not (call_args and call_args.has_key(f) and call_args[f]):
+ if f in call and call[f]:
+ if not (call_args and f in call_args and call_args[f]):
args = ''
else:
args = call_args[f]