From 944bb9fb73ed888f9917e3059274af2f3fa652fb Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Thu, 3 Dec 2009 16:03:17 +0000 Subject: remove has_key from config. --- numpy/distutils/command/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/distutils') 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] -- cgit v1.2.1