gendoc: remove callable usage (check-code) stable
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 22 Jul 2010 14:30:29 +0900
branchstable
changeset 11642 7f3581c5ad93
parent 11641 ead7550f1aab
child 11643 50fede14fe4d
gendoc: remove callable usage (check-code)
doc/gendoc.py
--- 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")