1. Carl Meyer
  2. python-distutils

Commits

Benjamin Peterson  committed 90bf183

replace callable()

  • Participants
  • Parent commits 9791b4f
  • Branches default

Comments (0)

Files changed (1)

File dist.py

View file
             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(