# HG changeset patch # User Augie Fackler # Date 2014-06-23 13:24:24 # Node ID 8225bb1f0ad364a5ec42f0dd9df9b4e6c891e7e6 # Parent 711498bb4ff58874b4920b89a3398aa91ead9060 help: restore use of callable() since it was readded in Python 3.2 diff --git a/mercurial/help.py b/mercurial/help.py --- a/mercurial/help.py +++ b/mercurial/help.py @@ -404,7 +404,7 @@ def help_(ui, name, unknowncmd=False, fu # description if not doc: rst.append(" %s\n" % _("(no help text available)")) - if util.safehasattr(doc, '__call__'): + if callable(doc): rst += [" %s\n" % l for l in doc().splitlines()] if not ui.verbose: