changeset 11642:7f3581c5ad93 stable

gendoc: remove callable usage (check-code)
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Thu, 22 Jul 2010 14:30:29 +0900
parents ead7550f1aab
children 50fede14fe4d
files doc/gendoc.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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")