Mercurial > hg
changeset 21796:8225bb1f0ad3
help: restore use of callable() since it was readded in Python 3.2
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 23 Jun 2014 09:24:24 -0400 |
parents | 711498bb4ff5 |
children | b009dd135aa0 |
files | mercurial/help.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help.py Mon Jun 23 09:24:06 2014 -0400 +++ b/mercurial/help.py Mon Jun 23 09:24:24 2014 -0400 @@ -404,7 +404,7 @@ # 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: