mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Closes #13258: Use callable() built-in in the standard library.
This commit is contained in:
parent
f99e4b5dbe
commit
5d1155c08e
25 changed files with 48 additions and 51 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue