Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 944bb9f

Browse files
committed
remove has_key from config.
1 parent 90e79bd commit 944bb9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

numpy/distutils/command/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ def check_funcs_once(self, funcs,
355355
body.append("int main (void) {")
356356
if call:
357357
for f in funcs:
358-
if call.has_key(f) and call[f]:
359-
if not (call_args and call_args.has_key(f) and call_args[f]):
358+
if f in call and call[f]:
359+
if not (call_args and f in call_args and call_args[f]):
360360
args = ''
361361
else:
362362
args = call_args[f]

0 commit comments

Comments
 (0)