mercurial/commands.py
changeset 8366 0bf0045000b5
parent 8313 b695392491e7
child 8387 50b6af595e0c
--- 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)