Skip to content
Snippets Groups Projects
Commit e0b29a0c authored by durin42's avatar durin42
Browse files

gendoc: restore use of callable() since it was readded in Python 3.2

parent e15c991f
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment