##// END OF EJS Templates
gendoc: restore use of callable() since it was readded in Python 3.2
Augie Fackler -
r21793:e0b29a0c default
parent child Browse files
Show More
@@ -14,7 +14,6 b' from mercurial.commands import table, gl'
14 14 from mercurial.i18n import gettext, _
15 15 from mercurial.help import helptable, loaddoc
16 16 from mercurial import extensions
17 from mercurial import util
18 17
19 18 def get_desc(docstr):
20 19 if not docstr:
@@ -137,7 +136,7 b' def helpprinter(ui, helptable, sectionfu'
137 136 ui.write("\n")
138 137 if sectionfunc:
139 138 ui.write(sectionfunc(sec))
140 if util.safehasattr(doc, '__call__'):
139 if callable(doc):
141 140 doc = doc()
142 141 ui.write(doc)
143 142 ui.write("\n")
General Comments 0
You need to be logged in to leave comments. Login now