##// 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 from mercurial.i18n import gettext, _
14 from mercurial.i18n import gettext, _
15 from mercurial.help import helptable, loaddoc
15 from mercurial.help import helptable, loaddoc
16 from mercurial import extensions
16 from mercurial import extensions
17 from mercurial import util
18
17
19 def get_desc(docstr):
18 def get_desc(docstr):
20 if not docstr:
19 if not docstr:
@@ -137,7 +136,7 b' def helpprinter(ui, helptable, sectionfu'
137 ui.write("\n")
136 ui.write("\n")
138 if sectionfunc:
137 if sectionfunc:
139 ui.write(sectionfunc(sec))
138 ui.write(sectionfunc(sec))
140 if util.safehasattr(doc, '__call__'):
139 if callable(doc):
141 doc = doc()
140 doc = doc()
142 ui.write(doc)
141 ui.write(doc)
143 ui.write("\n")
142 ui.write("\n")
General Comments 0
You need to be logged in to leave comments. Login now