Commit 427ee765 authored by Florent Xicluna's avatar Florent Xicluna

Closes #13258: Use callable() built-in in the standard library.

parent e70a6aed
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment