Mercurial > hg-stable
changeset 21793:e0b29a0c36c4
gendoc: restore use of callable() since it was readded in Python 3.2
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 23 Jun 2014 09:23:57 -0400 |
parents | e15c991fe2ec |
children | 753af9ee7c81 |
files | doc/gendoc.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/gendoc.py Mon Jun 23 09:23:47 2014 -0400 +++ b/doc/gendoc.py Mon Jun 23 09:23:57 2014 -0400 @@ -14,7 +14,6 @@ from mercurial.i18n import gettext, _ from mercurial.help import helptable, loaddoc from mercurial import extensions -from mercurial import util def get_desc(docstr): if not docstr: @@ -137,7 +136,7 @@ ui.write("\n") if sectionfunc: ui.write(sectionfunc(sec)) - if util.safehasattr(doc, '__call__'): + if callable(doc): doc = doc() ui.write(doc) ui.write("\n")