diff options
author | David Cournapeau <cournape@gmail.com> | 2009-12-03 16:00:30 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-12-03 16:00:30 +0000 |
commit | efadf0d436856dbd1b756035fc1faf46a607b346 (patch) | |
tree | 529b726e11aad78dcd0da2ac7b8ed33b681f04bb /numpy/distutils | |
parent | 5863ddfa04a64778305dfd072426373b90286355 (diff) | |
download | numpy-efadf0d436856dbd1b756035fc1faf46a607b346.tar.gz |
Do no use has_key in misc_utils.
Diffstat (limited to 'numpy/distutils')
-rw-r--r-- | numpy/distutils/misc_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index ba1249a3a..dee4ed106 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -1480,7 +1480,7 @@ class Configuration(object): # Sometimes, depends is not set up to an empty list by default, and if # depends is not given to add_library, distutils barfs (#1134) - if not build_info.has_key('depends'): + if not 'depends' in build_info: build_info['depends'] = [] self._fix_paths_dict(build_info) @@ -1602,7 +1602,7 @@ class Configuration(object): basename = os.path.splitext(template)[0] template = os.path.join(self.package_path, template) - if self.installed_pkg_config.has_key(self.name): + if self.name in self.installed_pkg_config: self.installed_pkg_config[self.name].append((template, install_dir, subst_dict)) else: |