--- a/doc/gendoc.py Wed Jul 21 12:41:18 2010 +0900 +++ b/doc/gendoc.py Thu Jul 22 14:30:29 2010 +0900 @@ -110,7 +110,7 @@ ui.write(".. _%s:\n" % name) ui.write("\n") section(sec) - if callable(doc): + if hasattr(doc, '__call__'): doc = doc() ui.write(doc) ui.write("\n")