# HG changeset patch # User Nicolas Dumazet # Date 2010-07-22 05:30:29 # Node ID 7f3581c5ad9314e36d3dc69f23989dceebc05ee8 # Parent ead7550f1aab9cfa346afe7577880bf00261b987 gendoc: remove callable usage (check-code) diff --git a/doc/gendoc.py b/doc/gendoc.py --- a/doc/gendoc.py +++ b/doc/gendoc.py @@ -110,7 +110,7 @@ def show_doc(ui): 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")