--- a/mercurial/commands.py Tue May 12 10:03:36 2009 -0400
+++ b/mercurial/commands.py Wed May 13 14:08:39 2009 +0200
@@ -1464,7 +1464,7 @@
# description
if not doc:
doc = _("(no help text available)")
- if callable(doc):
+ if hasattr(doc, '__call__'):
doc = doc()
ui.write("%s\n" % header)