diff options
author | David Cournapeau <cournape@gmail.com> | 2009-12-03 15:59:00 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-12-03 15:59:00 +0000 |
commit | ffce47a522f597017bf12f53500c886df8196c33 (patch) | |
tree | 84bd65a033a50626661d75a9767b77b34a8739a6 /numpy/distutils/misc_util.py | |
parent | 6914ea4c8429407566a037164c9e34e168c486f5 (diff) | |
download | numpy-ffce47a522f597017bf12f53500c886df8196c33.tar.gz |
Fix callable in misc_utils.
Diffstat (limited to 'numpy/distutils/misc_util.py')
-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 8628de4a0..ba1249a3a 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -588,7 +588,7 @@ def get_data_files(data): sources = data[1] filenames = [] for s in sources: - if callable(s): + if hasattr(s, '__call__'): continue if is_local_src_dir(s): filenames.extend(list(general_source_files(s))) @@ -1222,7 +1222,7 @@ class Configuration(object): raise TypeError(repr(type(files))) if d is None: - if callable(filepat): + if hasattr(filepat, '__call__'): d = '' elif os.path.isabs(filepat): d = '' |