commit | de0559998fef231efc9ecbdef5b3a195d4eaa28d | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri Oct 09 22:05:45 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Fri Oct 09 22:05:45 2009 +0000 |
tree | 235b05866ae52f80d81f2953c663d74f1de6dae1 | |
parent | 0c8bee639368324b750176ee171cadd33847f18e [diff] [blame] |
replace callable()
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index f49afcc..eb7d01c 100644 --- a/Lib/distutils/dist.py +++ b/Lib/distutils/dist.py
@@ -545,7 +545,7 @@ 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(