summaryrefslogtreecommitdiff
path: root/dist.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2011-10-28 14:45:05 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2011-10-28 14:45:05 +0200
commit427ee765c3c78e3aa63cd17881a4b70a009e8857 (patch)
treeb42cba0a7df146daabd3787d594b8bce3748ece5 /dist.py
parente70a6aed3ac452c83b45bd30ba7efb0d8e388021 (diff)
downloadpython-setuptools-git-427ee765c3c78e3aa63cd17881a4b70a009e8857.tar.gz
Closes #13258: Use callable() built-in in the standard library.
Diffstat (limited to 'dist.py')
-rw-r--r--dist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist.py b/dist.py
index 69825f20..a7025682 100644
--- a/dist.py
+++ b/dist.py
@@ -537,7 +537,7 @@ Common commands: (see '--help-commands' for more)
for (help_option, short, desc, func) in cmd_class.help_options:
if hasattr(opts, parser.get_attr_name(help_option)):
help_option_found=1
- if hasattr(func, '__call__'):
+ if callable(func):
func()
else:
raise DistutilsClassError(