diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-10-09 22:05:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-10-09 22:05:45 (GMT) |
commit | de0559998fef231efc9ecbdef5b3a195d4eaa28d (patch) | |
tree | 235b05866ae52f80d81f2953c663d74f1de6dae1 /Lib/distutils/dist.py | |
parent | 0c8bee639368324b750176ee171cadd33847f18e (diff) | |
download | cpython-de0559998fef231efc9ecbdef5b3a195d4eaa28d.zip cpython-de0559998fef231efc9ecbdef5b3a195d4eaa28d.tar.gz cpython-de0559998fef231efc9ecbdef5b3a195d4eaa28d.tar.bz2 |
replace callable()
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r-- | Lib/distutils/dist.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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( |