comparison doc/gendoc.py @ 11570:2d88369a27bf

gendoc: remove call to callable for py3k compatibility
author Martin Geisler <mg@lazybytes.net>
date Thu, 15 Jul 2010 14:02:17 +0200
parents 40c06bbf58be
children 13f0acfa974a
comparison
equal deleted inserted replaced
11569:f8576644a222 11570:2d88369a27bf
108 for names, sec, doc in helptable: 108 for names, sec, doc in helptable:
109 for name in names: 109 for name in names:
110 ui.write(".. _%s:\n" % name) 110 ui.write(".. _%s:\n" % name)
111 ui.write("\n") 111 ui.write("\n")
112 section(sec) 112 section(sec)
113 if callable(doc): 113 if hasattr(doc, '__call__'):
114 doc = doc() 114 doc = doc()
115 ui.write(doc) 115 ui.write(doc)
116 ui.write("\n") 116 ui.write("\n")
117 117
118 if __name__ == "__main__": 118 if __name__ == "__main__":