Commit c048eb0e authored by Benjamin Peterson's avatar Benjamin Peterson

replace callable()

parent f08d6046
......@@ -545,7 +545,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 callable(func):
if hasattr(func, '__call__'):
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